AppleScript

O’Reilly Network: AppleScript Primer for Mac OS X [Feb. 01, 2002]. What a great little intro. Good ideas!