A neat python/ruby/objc to applescript bridge:
http://appscript.sourceforge.net/