Language Guide
APPENDIX B
Scriptable Text Editor Dictionary
Scriptable Text Editor Object Class Definitions 327
point. The other coordinate, known as the y-coordinate, specifies the distance
from the top of the display to the point. (These distances are measured in
pixels, which are the picture elements that make up the display.) Figure B-1
illustrates the Bounds and Position properties of a sample window.
Figure B-1 Bounds and Position properties of a Scriptable Text Editor window
You specify points in AppleScript with lists. Figure B-1 shows that the point for
the Position property is specified by the list {100, 100}. The first item in this
list is the x-coordinate value of the point, and the second is the y-coordinate
value. The figure also shows that the Bounds property is specified by the list
{100, 100, 400, 400}. You specify the two points that define a rectangle
in a single list. In this list, {100, 100} are the coordinates of the upper-left
corner, and {400, 400} are the coordinates of the lower-right corner.
(100,0)
(0,0)
(0,100)
(400,0) (Pixels)
(0,400)
Position of document
"Introduction" {100,100}
(Pixels)
Bounds of document
"Introduction"
{100,100,400,400}