在 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 编辑器运行将不起作用。我让它从它创建的应用程序运行。PCSX 和 img.bin 位于 Generated Package 中。
按下后command+i
,它会打开一个"Go to the folder"
对话框,我需要单击Go
然后Open
但是这样做,它不会找到对话框。我究竟做错了什么?