Skip to Content
Mac OS X in a Nutshell
book

Mac OS X in a Nutshell

by Jason McIntosh, Chuck Toporek, Chris Stone
January 2003
Intermediate to advanced
832 pages
32h 40m
English
O'Reilly Media, Inc.
Content preview from Mac OS X in a Nutshell

Chapter 16. AppleScript

By scripting, we mean writing programs that act as “glue,” passing information between other existing applications in order to suit some purpose or act as macros, letting a user execute several commands in some program (or across several programs) with a single gesture. In this terminology, scripts are different than full-on applications because they lack a user interface; they just do their job and exit.

The highest-level scripting language on Mac OS X is AppleScript, initially developed by Apple in the early 1990s. AppleScripts enjoy a special dispensation on the Mac because of their native handling of Apple Events, which are simply messages that Mac applications can pass to one another. The majority of this chapter covers AppleScript, as well as AppleScript Studio, which is the Project Builder extension for building complete Aqua applications wrapped around AppleScript cores.

The Script Menu Extra

The Script menu extra

Figure 16-1. The Script menu extra

Apple’s Script menu extra (see Figure 16-1) offers perhaps the most convenient way to run scripts, both of the AppleScript and shell script variety. It doesn’t appear in your menu bar by default, but installing it is very easy: just run the Script Menu.menu program, found in /Applications/AppleScript. The Script menu extra pops into your menu bar and remains there until you manually remove it (by command-dragging it off of the ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mac OS X Internals: A Systems Approach

Mac OS X Internals: A Systems Approach

Amit Singh
C++ In a Nutshell

C++ In a Nutshell

Ray Lischner
Linux Shell Scripting Cookbook - Third Edition

Linux Shell Scripting Cookbook - Third Edition

Clif Flynt, Sarath Lakshman, Shantanu Tushar
Optimized C++

Optimized C++

Kurt Guntheroth

Publisher Resources

ISBN: 0596003706Supplemental ContentCatalog PageErrata