Language Guide
APPENDIX B
Scriptable Text Editor Dictionary
Scriptable Text Editor Commands 353
PARAMETER
referenceToDocument
A reference to the document or documents to be replaced by
the versions of the documents that were most recently saved.
Because the Scriptable Text Editor’s document and window
objects are interchangeable, either document or window objects
can be specified.
Class: Reference
RESULT
None
EXAMPLE
revert document "Really Big"
Save B
The standard Save command is defined on page 112. The Scriptable Text Editor
version behaves like the standard version, except that it has an extra optional
parameter (as text) that allows you to save Scriptable Text Editor files as text
files (files of type "TEXT"). Without this parameter, files are saved as Scriptable
Text Editor files.
save referenceToObject [in referenceToFile ] [as text]
In addition, the direct parameter of the Scriptable Text Editor version cannot be
a list; it must be a reference to a single object. For example, the following
statement results in an error:
tell application "Scriptable Text Editor"
save documents 1 thru 3
end tell
--result: error; Save can handle single objects only