2 Answers
2

But with GUI scripting, it’s hard to know for certain. I would suggest first finding out how to properly refer to the Open dialog window by trying one of the snippets below. Note that you’ll want to run the snippets below while the window is open.

tell application process "PCSX"
properties of (every window)
end

or

tell application process "PCSX"
entire contents
end

From there, get information on the button you want clicked, by using the entire contents command again.

Tedious, no? There is also something called UIElementInspector which is a klunky utility by Apple that helps discern the names of interface elements. Much better is the excellent UI Browser http://pfiddlesoft.com/uibrowser/ from PFiddlesoft (what a name).