Chapter 18. Commands

A command is basically a verb. This chapter catalogues the built-in commands of the AppleScript language—those that have not been described already. AppleScript defines very few verbs of its own, leaving it to other applications to define further commands by way of their dictionaries.

(On how to use a command, see Chapter 10. For set, copy, and get, see Section 7.1. For run, see Section 9.3. For error, see Section 12.7. For count, see Section 13.4.1, Section 13.12.1, and Section 13.13.1.)

Application Commands

A few commands may be sent to applications to start them up, bring them to the front, and make them quit. An application does not have to be scriptable to obey them (see Table 19-1 and the discussion there).

Get AppleScript: The Definitive Guide 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.