I recently had to hack together an AppleScript to batch process a bunch of QuickTime movies. I had quite a bit of difficulty because of my total unfamiliarity with AppleScript syntax.
Doing some searching I came across the following OSA (Open Scripting Architecture – the meat and potatoes behind AppleScript) components for languages that I know and like:
Perl: Mac::OSA
JavaScript: JavaScript for the Macintosh