Language Guide
CHAPTER 4
Commands
Command Definitions 111
on the application. Some applications are not affected; others, such as the
Scriptable Text Editor, repeat their startup procedures each time they receive
a Run command.
APPLESCRIPT COMMAND SYNTAX
run [ scriptObjectVariable ]
APPLICATION COMMAND SYNTAX
run [ referenceToApplication ]
PARAMETERS
scriptObjectVariable
A variable identifier whose value is a script object. This
parameter is optional if the Run command is used within
an appropriate Tell statement.
Class: Script
referenceToApplication
A reference of the form application nameString (see “Notes”).
This parameter is optional if the Run command is used within
an appropriate Tell statement.
Class: Reference
RESULT
The AppleScript Run command returns the result, if any, returned by the
specified script object’s Run handler.
The application Run command doesn’t return a result.
EXAMPLES
run application "Scriptable Text Editor"
tell application "Scriptable Text Editor"
run
end tell