Language Guide
APPENDIX B
Scriptable Text Editor Dictionary
Scriptable Text Editor Object Class Definitions 341
EXAMPLE
tell document "Report" of app "Scriptable Text Editor"
copy text item 2 to x
end tell
In this example, if the document Report begins with “Tomato, Banana,
Pineapple”, then the value of x is "Banana".
NOTE
The characters used to separate text item objects are specified in the Scriptable
Text Editor’s Text Item Delimiters property. At startup the default value of the
Scriptable Text Editor’s Text Item Delimiters property is a single-item list that
contains a comma: {","}. You can set this delimiter to a different value or add
additional delimiters, but the new values are lost when the user quits the
application.
Text Style Info B
An object of class Text Style Info specifies the styles of a text object. The Style
and Uniform Styles properties of text objects are text style info objects.
PROPERTIES
On Styles The styles that apply to the text object.
Class: List of constants (see “Notes” later in this section)
Modifiable? Yes
Off Styles The styles that do not apply to the text object.
Class: List of constants (see “Notes” later in this section)
Modifiable? Yes
ELEMENT CLASSES
None