Language Guide

CHAPTER 4
Commands
108 Command Denitions
EXAMPLE
tell app "Scriptable Text Editor"
open file "Macintosh HD:New Products:Mammoth:Product Intro"
end tell
tell app "Scriptable Text Editor"
open { file "HD:Letters:Offer", file "HD:Letters:Acceptance"}
end tell
NOTES
To specify the name (nameString) of a file to open, use 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.
If the file or files specified by referenceToFile is already open, it remains open.
Print application command4
A Print command is a request to print one or more objects.
SYNTAX
print referenceToObject
PARAMETER
referenceToObject
A reference to the object or objects to print—typically file(s),
document(s), or window(s).
Class: Reference or list of references
RESULT
None