Domanda

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?

È stato utile?

Soluzione 2

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

Altri suggerimenti

Have you tried..

quoted form of (POSIX path of this_item as text)
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top