Wrapping Up
This tutorial demonstrated how to use AppleScriptObjC to interact with a Cocoa interface, retrieving interface element attributes (field values) and responding to user events (clicks). The same principles can be utilized in much more complex (and useful) AppleScriptObjC applications.
My next article will build on the techniques outlined here by creating a simple AppleScriptObjC photo-processing app. In the meantime, you can use the techniques I've just demonstrated to begin experimenting on your own. Try creating a more advanced experimental app with other interface elements, such as pop-up menus, tables, and progress bars. Alternatively, you might want to add a simple Cocoa interface to one of your own real-world AppleScripts, in order to provide a more user-friendly experience.