Language Guide
APPENDIX B
Scriptable Text Editor Dictionary
328 Scriptable Text Editor Object Class Definitions
Although the object class defined for the Bounds and Position properties is List,
the Scriptable Text Editor actually stores Bounds and Position property data in
a different form. To get Bounds or Position data as a List, you must copy the
data to AppleScript. For example,
copy (Bounds of front window) to x
get item 2 of x
returns the y-coordinate of the upper-left corner of the window, but
get item 2 of (Bounds of front window)
returns an error.
The Name property of a document is an object of class Text. You can change the
characters of the name of a document, but unlike other objects of class Text,
you cannot change its Font, Size, or Style properties.
File B
An object of class File contains the data for a Scriptable Text Editor document.
When a file object is opened, a corresponding document object is created.
(Only open documents are Scriptable Text Editor document objects.) When
a document object is saved, the data for the document is saved in the
corresponding file object, which is represented by a Scriptable Text Editor
document icon on the desktop.
PROPERTIES
Name The name of the file.
Class: String of the form "Disk:Folder1:Folder2:...:Filename"
(see “Notes”)
Modifiable? No
ELEMENT CLASSES
None