Print application command
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
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.