0
我正在尝试将我的applescript合并到xcode中。该脚本通常与applescript一起工作,但不能在xcode中运行。我正在尝试打开文件以供阅读。这里是代码xcode 4.6 applescript读取文本文件
set Location to "US"
set DriverFile to "/Volumes/MacPrintDrivers/" & Location & "DriverInstall.txt"
set DriverInstallFile to POSIX file DriverFile
open for access DriverInstallFile
我已确认文件存在,我可以显示内容。我似乎无法在Xcode中阅读这种方式。我得到的误差是
«script» doesn’t understand the «event rdwropen» message. (error -1708)
可能重复[设置音量不能在xcode中使用applescript cocoa objc](http://stackoverflow.com/questions/15555380/set-volume-not-working-in-xcode-with-applescript-cocoa-objc ) – matt 2013-04-23 03:37:32