Frage

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?

War es hilfreich?

Lösung 2

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

Andere Tipps

Have you tried..

quoted form of (POSIX path of this_item as text)
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top