id summary reporter owner description type status priority milestone component version resolution keywords cc 1075 AppleScriptでファイルを開いた直後にそのドキュメントに対する処理が実行されないことがある daisuke daisuke "ファイルを開いた後、delay 1などを入れると開ける -- <対策方法> 下記のようにopenの引数にする変数""as alias""をつけて、 openの引数をalias型にすると、 open後の処理が必ずシーケンシャルに実行されます。 (""as alias""が無い場合、openがFinderで実行され、処理が前後することがあります) tell application ""Finder"" set testfile to (file ""test.txt"" in desktop) as alias end tell tell application “mi” open testfile as ""UTF-8"" get character code of document 1 end tell -- ただ、下記の文法もできるようにしたほうが良いので、対応検討します。 set theNewDoc to make document with properties: {path:thePath} " 不具合 new 普通 3.8 アプリケーション