Question

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?

Was it helpful?

Solution 2

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

OTHER TIPS

Have you tried..

quoted form of (POSIX path of this_item as text)
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top