Language Guide

CHAPTER 3
Values
66 Value Class Denitions
OPERATORS
Because values identified as Styled Text values are really values of class String,
the operators available are the operators described in the definition of class
String: &, =, , >, , <, , Starts With, Ends With, Contains, Is Contained By,
and As.
For detailed explanations and examples of how AppleScript operators treat
strings, see “Operators That Handle Operands of Various Classes,” which
begins on page 168.
REFERENCE FORMS
You can use the same reference forms with styled text that you can use with
strings: Property, Index, Middle, Arbitrary, Every Element, and Range. For
details, see page 63.
SPECIAL CHARACTERS AND STRING CONSTANTS
You can use the same special characters, constants, and coercions with styled
text that you can use with strings. For details, see page 63. Note that literal
string constants do not include style and font information; in other words, they
are not styled text.
COERCIONS SUPPORTED
You can use the same coercions with styled text that you can use with strings:
coercion to an integer, number, real number, or single-item list, and coercion of
a list of strings to a single concatenated string.
You can use the class identifier Styled Text to coerce any string to styled text.
However, the resulting value is always of class String.