O'Reilly logo

AppleScript® Programming for the Absolute Beginner by Jerry Lee Ford

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Searching String, Lists, and Records

AppleScript provides you with access to a collection of containment operators that you can use to search the contents of strings, lists, and records. These containment operators are listed in Table 5.6.

Table 5.6. AppleScript Containment Operators
OperatorApplies toDescription
containsstrings, lists, recordsSearches the first operand to see if it contains the second operand.
is instrings, lists, recordsSearches for the second operand in the first operand.
does not containstrings, lists, recordsSearches the first operand to verify that it does not contain the second operand.
is not itstrings, lists, recordsSearches for the second operand in the first operand to ensure that it is not present.
begins withstrings, lists ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required