Language Guide

CHAPTER 5
Objects and References
126 Reference Forms
Arbitrary Element 5
The Arbitrary Element reference form specifies an arbitrary object in a
container. If the container is a value (such as a list), AppleScript chooses
an object at random (that is, it uses a random-number generator to choose
the object). If the container is an application object, it is up to the application
to choose an object. It can choose a random object or any object at all.
SYNTAX
some className
where
className is the class identifier for the desired object.
Table 5-1 Reference forms
Reference form Purpose
Arbitrary Element Specifies an arbitrary object in a container
Every Element Specifies every object of a particular class in a container
Filter Specifies every object in a particular container that
matches conditions defined in a Boolean expression
ID Specifies an object by its ID property
Index Specifies the position of an object with respect to the
beginning or end of a container
Middle Element Specifies the middle object in a container
Name Specifies an object by its Name property
Property Specifies a property of an application object, a record,
a script object, or a date
Range Specifies a series of objects
Relative Specifies the position of an object in relation to
another object