Вопрос

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?

Это было полезно?

Решение 2

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

Другие советы

Have you tried..

quoted form of (POSIX path of this_item as text)
Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top