Language Guide
CHAPTER 4
Commands
100 Command Definitions
PARAMETER
referenceToObject
A reference to the object or objects to find.
Class: Reference
RESULT
If true, all of the objects referred to by referenceToObject exist. If false, one or
more of the objects referred to by referenceToObject do not exist.
Class: Boolean
EXAMPLES
tell document "Tremendous" of app "Scriptable Text Editor"
if word 7 exists then
delete word 7
end if
end tell
tell application "Scriptable Text Editor"
if exists front document then
print front document
end if
end tell
Get AppleScript command, application command4
The Get command can function as an AppleScript command or an application
command. The AppleScript command returns the value of an expression.
The application command returns the value of an object. In both cases, the
command assigns the value returned to the predefined variable result.