O'Reilly logo

Learn AppleScript: The Comprehensive Guide to Scripting and Automation on Mac OS X, Third Edition by Hanaan Rosenthal, Hamish Sanderson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 21. Scripting Apple Applications

Many of the standard Apple applications that ship with Mac OS X provide some level of AppleScript support. As you can imagine, covering every aspect of scripting every Apple application would easily fill its own book (or three), so my intention in this chapter is just to give you a solid start in scripting the five most important ones: iTunes, Mail, iCal, Address Book, and Automator.

Warning

Remember to back up your data before running potentially destructive scripts (or performing automation of any sort, for that matter). Accidents will happen, even to the most careful of scripters.

Scripting iTunes

iTunes has long provided a solid object model for working with its tracks and playlists. Scripts for iTunes ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required