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 |
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.
Notation | Meaning |
---|---|
Boolean | A true or false value |
filelist | A list of file aliases |
fileRef | A number returned by the open for access command, a file specification, or an alias |
folder | An alias for a folder |
path, prompt, title | A string |
n | An integer |
char | A string consisting of one character |
number | A real or integer value |
offset | A double integer representing a file offset |
smallInt | A small integer |
stringlist | A 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 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.