Version 2.0 introduced some additional Applescript features and improvements that can help save time as well as obtain more information about your images and the application itself. After having a difficult time trying to automate Aperture 1.5 myself and not finding too many example scripts on the net, I decided to provide a few of my own.
I've grouped the examples into the basics, importing, exporting, and metadata. The examples may not show the fastest way of performing some task, but the point is to show how to achieve the task to get the job done. I may post additional scripts I find useful or snippets that may help to improve your own scripts in the future. Feel free to submit your own scripts you feel are useful or ideas on how to improve performance.
PLEASE NOTE
I assume that you are running the latest version of Mac OS 10.5 and Aperture 2.0 (sorry no 1.x.x). The examples may not function the same on previous versions of the OS or the application. I also assume you know a little about Applescript to begin with. And of course, before trying any of these scripts, please do so on a non-production Aperture library and always back up your stuff as I do not provide any kind of guarantee. The examples are provided strictly as-is so beware.