Learn AppleScript The Comprehensive Guide to Scripting and Automation on Mac OS X - Sanderson, Hamish. (Apress : Imprint: Apress, 2009)