Pregunta

I'm working on an Applescript droplet that will clang any source file I drop on it. The only real line I have in it is

do shell script "clang " & (POSIX path of this_item as text)

However I get the error

ld can't open output file for writing: a.out, errno=13 for architecture x86_64

This doesn't happen when I use the Terminal directly, so it's an Applescript problem. How do I get past this?

¿Fue útil?

Solución 2

I figured it out. I had to cd to the folder in question.

Otros consejos

Have you tried..

quoted form of (POSIX path of this_item as text)
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top