Language Guide

APPENDIX B
Scriptable Text Editor Dictionary
Scriptable Text Editor Commands 347
Table B-2 summarizes the commands other than the standard application
commands that are supported by the Scriptable Text Editor.
The sections that follow describe both the commands listed in Table B-1 that
differ from the standard versions and the commands listed in Table B-2.
Copy B
The standard Copy command is defined on page 88. The Scriptable Text Editor
version of the Copy command behaves like the standard version, except the
direct parameter of the Scriptable Text Editor command cannot be a list; it must
be a reference to a single object. For example, the following statement results in
an error:
tell document "Intro" of app "Scriptable Text Editor"
copy words whose style contains bold to beginning
end
--result: error; Copy can handle single objects only
Table B-2 Other Scriptable Text Editor commands
Command Description
Cut Removes an object and puts it on the Clipboard
Paste Copies the object or objects on the Clipboard to the current
selection
Revert Replaces a document with the most recently saved version
Select Selects an object or document