Language Guide
CHAPTER 3
Values
52 Value Class Definitions
You cannot use the Relative, Name, ID, or Filter reference forms. For example,
the following reference, which uses the Filter reference form on a list, is
not valid.
the items in {"this", "is", "a", "list"} whose first
character is "t"
--result: not a valid reference
COERCIONS SUPPORTED
AppleScript supports coercion of a single-item list to any value class to which
the item can be coerced if it is not part of a list.
AppleScript also supports coercion of an entire list to a string if all items in the
list can be coerced to a string. The resulting string concatenates all the items:
{5, "George", 11.43, "Bill"} as string
--result: "5George11.43Bill"
Individual items in a list can be of any value class, and AppleScript supports
coercion of any value to a list that contains a single item. Concatenated values
of any class can also be coerced to a list:
5 & "George" & 11.43 & "Bill" as list
--result: {5, "George", 11.43, "Bill"}
NOTES
To merge or add values to lists, use the concatenation operator (&). For example,
{"This"} & {"is", "a", "list"}
results in
{"This", "is", "a", "list"}
Note that the concatenation operator merges the items of the two lists into a
single list rather than making one list a value within the other list.