Name
is contained by
Syntax
"html" is contained by "index.html" -- returns true
Synonyms
is in
Return value
boolean
; true
or
false
Description
This operator can take lists, records, or strings as operands. If the
left-hand operand is not of the same class as the second operand,
then AppleScript will attempt to coerce the first operand to the
second operand’s class before evaluating the
expression. You cannot use this operator alone to find out if a file
is contained by a disk or folder (see the discussion of
contains
) because the folder, file, and disk
classes are not lists, records, or strings.
Get AppleScript in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.