Language Guide
APPENDIX B
Scriptable Text Editor Dictionary
330 Scriptable Text Editor Object Class Definitions
Length The number of characters in a text object. For insertion points,
the value of the Length property is always 0.
Class: Integer
Modifiable? No
Offset The number of possible insertion points from the beginning of
the document to the insertion point. The first insertion point of a
document is the insertion point before the first character.
Class: Integer
Modifiable? No
Size The point size that is active at an insertion point.
Class: Integer
Modifiable? Yes
Style The text styles that are active at an insertion point.
Class: Text Style Info. Objects of this class have two properties:
On Styles and Off Styles. The On Styles property specifies the
styles that are active. The Off Styles property specifies the styles
that are not active. Both properties are lists of constants that
specify text styles. See “Elements of Text Objects” on page 314
for information about how styles are used. The constants that
can be used in Style property lists are bold, italic, outline,
underline, and shadow.
Modifiable? Yes
Uniform Styles
The text styles that are uniformly “on” or “off” for all characters
of a text object. For insertion points, the Uniform Styles property
indicates which text styles are active at the insertion point. It
always has the same value as the Style property.
Class: Text Style Info. Objects of this class have two properties:
On Styles and Off Styles. See “Elements of Text Objects” on
page 314 for information about how styles are used. The
constants that can be used in Uniform Styles property lists are
bold, italic, outline, underline, and shadow.
Modifiable? No
ELEMENT CLASSES
None