This project is read-only.

Retrieving objects names from the source code.

Apr 27, 2014 at 2:14 AM

I am a brand new programmer, attempting to write a small app using Applescript to open a "rom" in PCSX-Reloaded. This app will then be loaded into Steam as the front end.

My code works up to line 6. However, how can I find the correct object names for "textfield1" and "sheet1" in the PCSX source code? Is there a routine I can run (using any programming/scripting language) to pull these object names out?

1 set filepath to POSIX path of "Applications:ROMs:PS1:NAME OF ROM GOES HERE.iso"
3 activate application "PCSX"
4 tell application "System Events"
5 keystroke "i" using {command down}
6 keystroke "g" using {shift down, command down}
7 set value of textfield1 of sheet1 to "quoted form of filepath"
8 click button 1 of sheet 1
9 click button "Open"
10 end tell