Language Guide
CHAPTER 5
Objects and References
Reference Forms 139
text of words 1 thru 4 of "We're all in this together"
--result: "We're all in this"
Relative 5
The Relative reference form specifies an object or a location by describing its
position in relation to another object, known as the base, in the same container.
SYNTAX
[ className ] ( before | [in] front of ) baseReference
[ className ] ( after | [in] back of | behind ) baseReference
where
className is the class identifier of the specified object. If you leave out this
parameter, AppleScript assumes you want an insertion point.
baseReference is a reference to the base object.
The before and in front of forms, which are equivalent, refer to the object
immediately preceding the base object. The after, in back of, and
behind forms are equivalent and refer to the object immediately after the base.
EXAMPLES
The following references specify the word immediately before the first figure.
word before figure 1
word in front of figure 1
The following examples specify the insertion point immediately before the
tenth paragraph.
before paragraph 10
in front of paragraph 10