PCSX (ps1 エミュレーター) で、iso を再生する手順を自動化しようとしています。だから、私はこれをやっています:
set thepath to path to me
set thesecondpath to POSIX path of thepath
set thethirdpath to "Contents/PSX/ROMS/img.bin"
set thefourthpath to "/Contents/PSX/PCSX.app"
set thefifthpath to thesecondpath & thefourthpath
set theultimatepath to thesecondpath & thethirdpath
tell application thefifthpath
activate
tell application "System Events"
keystroke "i" using {command down}
keystroke theultimatepath
delay 1.0
tell process "PCSX"
click button "Go"
end tell
key code 53
end tell
end tell
AppleScript Editor からの実行は機能しません。作成したアプリから動作するようにしました。PCSX と img.bin は、生成されたパッケージ内にあります。
を押すと、ダイアログcommand+i
が開き、クリックしてから"Go to the folder"
Go
Open
しかし、この方法では、ダイアログ ボックスが見つかりません。私は何を間違っていますか?