Language Guide
CHAPTER 2
Overview of AppleScript
Other Features and Language Elements 29
After you create the variable myName, you can refer to it by any of these names:
MYNAME
myname
MyName
mYName
When interpreting strings, such as "Pegi", AppleScript preserves the case of
the letters in the string, but does not use it in comparisons. For example, the
value of the variable myName deļ¬ned earlier is always "Pegi", but the value
of the expression myName = "PEGI" is true.
Abbreviations 2
The AppleScript English dialect is designed to be intuitive and easy to under-
stand. To this end, AppleScript English uses familiar words to represent objects
and commands and uses statements whose structure is similar to English
sentences. For the same reason, it typically uses real words instead of abbrevia-
tions. In a few cases, however, AppleScript supports abbreviations for long and
frequently used words.
One important example is the abbreviation app, which you can use to refer to
objects of class application. This is particularly useful in Tell statements. For
example, the following two Tell statements are equivalent:
tell application "Scriptable Text Editor"
print the front window
end tell
tell app "Scriptable Text Editor"
print the front window
end tell