Language Guide

CHAPTER 4
Commands
Command Denitions 109
EXAMPLES
tell application "Scriptable Text Editor"
print document "Introduction"
end tell
tell application "Scriptable Text Editor"
print windows 1 thru 5
end tell
tell application "Scriptable Text Editor"
print { file "HD:Letters:Zoning Department",
file "HD:Letters:Mayor"}
end tell
NOTES
To specify the name of a file to print, use the term file or alias followed by
a string of the form "Disk:Folder1:Folder2:...:Filename"; for details, see
“References to Files,” which begins on page 144. You can also specify a string
with only a filename ("Filename"). In this case, the application attempts to find
the file in the current directory.
Quit application command4
A Quit command is a request for an application to terminate. If no optional
parameters are specified, the Quit command has the same result as choosing
the Quit menu item in the application.
SYNTAX
quit referenceToApplication [ saving saveOption ]