B.8. Commands

The Standard Suite of commands is listed in the following table. This suite includes commands that you typically send to other applications to execute, so you should consult the application's dictionary to find out if they're implemented and to what extent.

Command
class info
close
count
data size
delete
duplicate
event info
exists
make
move
open
print
quit
reopen
run
save
select
suite info

Other suites, such as the Text Suite, are not covered in this section.

The following sections summarize AppleScript's commands. They are listed alphabetically for quick reference. The Standard Addition commands are included in this list and denoted by an asterisk.

The following table summarizes the notation used to denote specific types of values required by each command. In many cases, if you don't provide the correct argument type, the command tries to coerce the supplied value into the proper type.

NotationMeaning
BooleanA true or false value
filelistA list of file aliases
fileRefA number returned by the open for access command, a file specification, or an alias
folderAn alias for a folder
path, prompt, titleA string
nAn integer
charA string consisting of one character
numberA real or integer value
offsetA double integer representing a file offset
smallIntA small integer
stringlistA list of strings

In the list that follows, optional parameters to a command are enclosed in brackets.

B.8.1. activate

General Format

activate

Activates the targeted application, launching it if necessary, and bringing it to ...

Get Beginning AppleScript® now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.