Windows サーバーに移動したコンパイル済みの AppleScript アプリケーションがあります。次に、アプリケーションにテキスト ファイルを挿入します (Windows では zip ファイルのように見えます)。
myapplescript.app/Contents/Resources/MyNewDir/MyTxtFile.txt
そこで、AppleScript をプリコンパイルして、このテキスト ファイルから読み取り、内容を文字列として取得しようとしました。これが私がすることです:
set theFolder to POSIX path of (the path to me)
set theFile to theFolder & "Contents/Resources/MyNewDir/MyTxtFile.txt"
open for access theFile
set fileContents to (read theFile)
close access theFile
しかし、これは私が得るエラーです:
「/Users/mike/Desktop/myapplescript.app/Contents/Resources/MyNewDir/MyTxtFile.txt」をタイプ ファイルにできません