Language Guide

CHAPTER 3
Values
64 Value Class Denitions
is displayed in a dialog box as
item 1 1
item 2 2
STRING CONSTANTS
AppleScript defines three constants for string values:
COERCIONS SUPPORTED
If a string consists of an appropriate number, AppleScript supports coercion of
the string to an integer, a number, or a real number. Similarly, any integer,
number, or real number can be coerced to a string. AppleScript also supports
coercion of a string to a single-item list and coercion of a list whose items are all
strings to a single concatenated string.
NOTES
There is no limit on the length of strings except the memory available in
the computer.
To get a contiguous range of characters within a string, use the text element.
For example, the value of the following statement is the string "y thi".
get text of characters 3 thru 7 of "Try this at home"
--result: "y thi"
The result of the same statement without the text element is a list.
get characters 3 thru 7 of "Try this at home"
--result: {"y", " ", "t", "h", "i"}
Constant Value
space " "
tab "\t"
return "\r"