Chapter 39. Introducing AppleScript

AppleScript has been referred to as Apple’s best-kept secret—it is a command-line buried beneath many of the Mac’s popular applications, including the Finder, that allows people to automate simple tasks.

To be controlled by AppleScript, an application must implement a scripting dictionary, which is a collection of commands and functions that can be invoked through AppleScript. Each application determines the features it makes available for scripting. The result of this approach is that applications can make their most useful functions available through a script so that complex actions can be run with ease.

It’s also important to note the audience of Mac OS X’s AppleScripting capabilities. AppleScript was intended ...

Get Sams Teach Yourself Mac OS X Panther All in One 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.