AppleScript を xcode に取り込もうとしています。スクリプトはapplescriptで正常に動作しますが、xcodeでは実行されません。読み取り用にファイルを開こうとしています。ここにコードがあります
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)