Language Guide

CHAPTER 7
Control Statements
Tell Statements 187
AppleScript defines another word, my, that you can use instead of the phrase
of me. For example, the following script is equivalent to the previous example:
property name : "Script"
tell document "Introduction" of application ¬
"Scriptable Text Editor"
get my name
end tell
--result: "Script"
If you refer to a property in a Tell statement without using either it or me,
AppleScript assumes that you want the property of the default target of the Tell
statement. For example, the result of the Get command in the following Tell
statement is "Introduction".
property name : "Script"
tell document "Introduction" of application ¬
"Scriptable Text Editor"
get name
end tell
--result: "Introduction"
If AppleScript cannot find the property in the dictionary of the default target of
the Tell statement, then it assumes you want the property of the current script.
For example, the result of the Get command in the following Tell statement is
1000000.
property x : 1000000
tell document "Introduction" of application ¬
"Scriptable Text Editor"
get x
end tell
--result: 1000000
In addition to distinguishing script properties from object properties, me
and my are used to distinguish user-defined commands (subroutines)
from application commands in Tell statements. For more information,
see Chapter 8, “Handlers.”