Language Guide
CHAPTER 3
Values
Value Class Definitions 61
String 3
A value of class String is a character string (an ordered series of characters)
in AppleScript.
LITERAL EXPRESSIONS
Strings in scripts are always surrounded by quotation marks, as in these
examples:
"string"
"Rolling along, stringing a song"
"Pennsylvania 68000"
To include quotation marks in a string, you must use the equivalent two-
character sequence, \". For more information, see “Special Characters in
Strings” later in this section.
PROPERTIES
Class The class identifier for the object. This property is read-only, and
its value is always string.
Length The number of characters in the string.
ELEMENTS
Strings can have character, word, paragraph, and text elements.
The elements of a string may be different from the character, word, paragraph,
and text objects of applications.
Character A single character contained in the string.
Paragraph A series of characters ending with either (1) a return character
or (2) the end of the string and beginning immediately after
either (1) the first character after the end of the preceding
paragraph or (2) the beginning of the string.
Text A continuous series of characters, including spaces, tabs, and
all other characters, within a string (see “Notes” later in
this section).