Scripting the UI

Is it possible to control an otherwise unscriptable app by doing things like simulating button clicks and menu selections?

Ofcouse, it is possible.

google for these:
UI Prefab Browser
UI Inspector
cliclick

In case anybody else is looking for this information, it’s in the “Processes” suite of System Events.

It looks like I’m going to be using the “click at” command. Any suggestions on how I can figure out the coordinates other than by trial and error?

click at doesn*t work.
Use Extra Suites or Clicklick

I think he meant, cliclick http://www.bluem.net/en/mac/cliclick/

To see the co-ordinate, use the screenshot capture feature (Selection not window) in Mac OS.
See the co-ordinates in the cross-hair. Then press Escape key to exit it.

do shell script "screencapture -c -i"