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 ...
Get Learn AppleScript: The Comprehensive Guide to Scripting and Automation on Mac OS X, Third Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.