Language Guide

APPENDIX B
Scriptable Text Editor Dictionary
Scriptable Text Editor Object Class Denitions 323
EXAMPLES
delete the last character of word 5
tell document "Intro" of app "Scriptable Text Editor"
move (text from character 1 to character 21) to end
end tell
Document/Window B
A document object is an open Scriptable Text Editor document. The window
and document objects have the same elements and properties. They can be
used interchangeably.
PROPERTIES
Bounds The rectangle that bounds the content region of the window (the
portion of the window that contains the text of the document;
the “window frame”—the title bar and scroll bars—are not part
of the content region).
Class: List of four integers. The first two integers specify the
coordinates of the upper-left corner of the window, and the last
two integers specify the coordinates of the lower-right corner of
the window. (For information about window coordinates, see
“Notes” later in this section.)
Modifiable? Yes
Closable A Boolean parameter that indicates whether the window has a
close box. The value true specifies that the window has a close
box, and the value false indicates that it doesn’t. All Scriptable
Text Editor windows have close boxes.
Class: Boolean
Modifiable? No
Contents All the text contained in the window.
Class: Text
Modifiable? Yes