Language Guide
CHAPTER 4
Commands
112 Command Definitions
NOTES
To specify the name (nameString) of an application to run, use a string of the
form "Disk:Folder1:Folder2:...:ApplicationName"; for details, see “References
to Applications,” which begins on page 146. You can also specify a string with
only an application name ("ApplicationName"). In this case, if the application
is not already running, AppleScript attempts to find the application in the
current directory.
AppleScript sends an implicit Run command whenever it begins to execute a
Tell statement whose target is an application that is not already open. This can
cause problems with applications such as Scriptable Text Editor that normally
perform specific tasks on startup, such as opening a new window. To launch an
application without invoking its usual startup behavior, use the Launch
command as described on page 103. For information about using the Run and
Launch commands with script applications, see “Calling a Script
Application,”which begins on page 251.
For information about Run handlers, see “Run Handlers,” which begins on
page 243. For information about using the Run command with script objects,
see Chapter 9, “Script Objects.”
Save application command4
A Save command is a request to save an object or objects.
SYNTAX
save referenceToObject [ in referenceToFile ]
PARAMETERS
referenceToObject
A reference to the object or objects to be saved.
Class: Reference