Language Guide
CHAPTER 4
Commands
110 Command Definitions
PARAMETERS
referenceToApplication
A reference of the form application nameString, where
nameString is a string that matches the name of the application
you want to quit as it is listed in the Application menu.
Class: Reference
saveOption A constant that specifies whether to save documents that have
been modified before quitting. The possible values are yes, no,
and ask. The value yes specifies to save the documents. The
value no specifies not to save the documents. The value ask
specifies to ask the user whether or not to save the documents.
Class: Constant
Default Value: ask
RESULT
None
EXAMPLES
tell application "Scriptable Text Editor"
quit saving no
end tell
quit application "Scriptable Text Editor" saving ask
Run AppleScript command, application command4
The Run command can function as an AppleScript command or an application
command.
The AppleScript Run command acts on script objects; it executes statements
other than handler and property definitions in script object definitions.
The application Run command launches an application if it’s not already
running. The application must be on a local or mounted volume. If the
application is already running, then the effect of the Run command depends