Language Guide
CHAPTER 3
Values
50 Value Class Definitions
Each list item can be any valid expression. For example,
{ "it" & "'s", 1 + 1, 4 > 3 }
has the same value as the list in the previous example, because each of the
expressions it contains has the same value as the corresponding expression
in the previous example.
An empty list is a list containing no items. It is represented by a pair of
empty braces:
{}
PROPERTIES
Class The class identifier for the value. This property is read-only, and
its value is always list.
Length An integer containing the number of items in the list. This
property is read-only.
Rest A list containing all items in the list except the first item.
Reverse A list containing all items in the list, but in the opposite order.
ELEMENT
Item A value contained in the list. Each value contained in a list
is an item. You can refer to values by their item numbers.
For example, item 2 of { "soup", 2, "nuts" } is the
integer 2. To specify items of a list, use the reference forms listed
in “Reference Forms” later in this definition.
OPERATORS
The operators that can have List values as operands are &, =, , Starts With,
Ends With, Contains, Is Contained By.
For detailed explanations and examples of how AppleScript operators treat
lists, see “Operators That Handle Operands of Various Classes,” which begins
on page 168.