2014-04-07 112 views
1

我正在研究一個Applescript液滴,它會將任何源文件放在它上面。 唯一真正的行我在它是Applescript shell腳本無法寫入文件?

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

但是我得到的錯誤

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

,當我直接使用終端這不會發生,所以它是一個AppleScript問題。我如何克服這個問題?

回答

0

我想通了。我不得不cd到有問題的文件夾。

1

你試過..

quoted form of (POSIX path of this_item as text) 
+0

沒有,沒有做到這一點。它似乎正在接受文件路徑,但它在寫入輸出文件時遇到了麻煩。 – PopKernel

+0

您仍然應該將腳本更改爲引用形式。 – adayzdone

+0

無論如何,這是幹什麼的? – PopKernel