Language Guide
APPENDIX B
Scriptable Text Editor Dictionary
Scriptable Text Editor Commands 349
NOTES
If you do not specify a direct parameter and there is no selection to be cut, the
Scriptable Text Editor does not change the contents of the Clipboard.
If you specify a direct parameter, it must be a reference to a single object. The
Scriptable Text Editor cannot cut ranges of objects. For example, the following
statement results in an error.
tell application "Scriptable Text Editor"
cut words of paragraph 5 of front document
end tell
--result: error, because Cut can handle single objects only
Data Size B
The standard Data Size command is defined on page 97. The Scriptable Text
Editor version of the Data Size command behaves like the standard version. It
returns the size of the data (a value) that would result from a Get command on
an object or objects.
By default, the Scriptable Text Editor returns text objects as class Styled Text,
including font and style information. The additional information adds a
variable number of bytes to the data size. As a result, the size of a text object
will be greater than the number of bytes contained in the corresponding text
without the font and style information. To get the data size of a text object
without font and style information, use the as className parameter to request
the size of the data as text; for example,
data size of word 1 of front document as text
Duplicate B
The standard Duplicate command is defined on page 99. The Scriptable Text
Editor version of the Duplicate command behaves like the standard version
of the command, except the direct parameter cannot be a list; it must be a