Scripting in OS X seems pretty interesting.
Here is an Ars article some might be interested in. http://arstechnica.com/apple/guides/2011/09/tutorial-os-x-automation-with-macruby-and-the-scripting-bridge.ars