DekGenius.com
Team LiB   Previous Section   Next Section
is not contained by

Syntax

"html" isn't contained by "index.html" -- returns false

Synonyms

is not in

isn't contained by

Return value

boolean; true or false

Description

These operators return the opposite result of the is contained by and is in operators. They return true if the left operand—a list, record, or stringcannot be found in the list, record, or string operand on the right. If the left operand is not of the same class as the second operand, then AppleScript attempts to coerce the first operand to the second operand's class before evaluating the expression. The use of is not in and its variants is a good way to delineate the strings that do not contain certain substrings.

Examples

tell application "Finder"
(* get a list of desktop files whose names do not contain '.jpeg' *)
get files where ".jpg" is not in name of files
end
    Team LiB   Previous Section   Next Section