Language Guide
APPENDIX B
Scriptable Text Editor Dictionary
336 Scriptable Text Editor Object Class Definitions
EXAMPLES
tell front document of application "Scriptable Text Editor"
copy word 1
set selection to end of paragraph 1
paste
end tell
tell application "Scriptable Text Editor"
set style of the selection of front document to bold
end tell
NOTES
In the Scriptable Text Editor, the only objects of class selection are the Selection
properties of the application, document, and window objects.
Text B
An object of class Text is a series of one or more contiguous characters.
PROPERTIES
Font The name of the font of the text object. If the font varies
within the object, the Font property specifies the font of the
first character.
Class: String
Modifiable? Yes
Length The number of characters in a text object.
Class: Integer
Modifiable? No
Offset The offset, in characters, from the beginning of the document to
the first character of a text object.
Class: Integer
Modifiable? No