Language Guide

CHAPTER 7
Control Statements
188 Tell Statements
Note
Within tests in Filter references, the direct object is the
object being tested, so the variable it refers to the object
currently being tested. See “Using the Filter Reference
Form” on page 140 for information about the use of it
in tests.
Tell (Simple Statement) 7
A simple Tell statement specifies the object to which to send a command.
SYNTAX
tell referenceToObject to statement
where
referenceToObject is a reference to an application object, system object, or
script object.
statement is any AppleScript statement.
EXAMPLE
tell front window of application "Scriptable Text Editor" to close
NOTES
If referenceToObject specifies an application on a remote computer, additional
conditions must be met. These conditions are described in “References to
Applications,” which begins on page 146.
If referenceToObject specifies an application on the same computer that is not
running, AppleScript launches the application.