Language Guide

CHAPTER 6
Expressions
Operations 173
"zebra" > "aardvark"
are true. A string is less than (comes before) another string if it would appear
in a dictionary before the other string. For example,
"aardvark" comes before "zebra"
and
"aardvark" < "zebra"
are true.
AppleScript uses the ASCII collating sequence to determine a word’s position
in an English-language dictionary. The order of the ASCII collating sequence is
space!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTU
VWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~
AppleScript compares strings character by character. When the corresponding
characters in two strings are not the same, the string containing the character
closest to the beginning of the ASCII collating sequence is less than the other
string. If two strings have identical characters but one is shorter than the other,
the shorter string is less than the longer string. AppleScript treats all letters as
lowercase letters, unless you use a Considering statement to consider the case
attribute. For more information about Considering statements, refer to
“Considering and Ignoring Statements” on page 213.
Starts With, Ends With 6
The Starts With and Ends With operators work with lists and strings.
LIST
A list starts with another list if the values of the items in the list to the right of
the operator are equal to the values of the items at the beginning of the list to
the left. A list ends with another list if the values of the items in the list to the
right of the operator are equal to the values of the items at the end of the list to