Text Suite
413
Text Suite
Classes..........................................................................................................................................................................413
Commands ..................................................................................................................................................................443
Classes
character ......................................................................................................................................................................413
grammatical error.......................................................................................................................................................414
paragraph ....................................................................................................................................................................414
paragraph format .......................................................................................................................................................420
section ..........................................................................................................................................................................425
sentence .......................................................................................................................................................................426
shading ........................................................................................................................................................................427
spelling error...............................................................................................................................................................429
text range .....................................................................................................................................................................430
word .............................................................................................................................................................................438
Word style ...................................................................................................................................................................439
Class: character
Plural
characters
A list of characters in a selection, range, or document. Each character is an element of a text range
object that represents one character.
Use characters to return all the characters in a text range. The following example displays how
many characters are selected.
display dialog ((count of characters in selection) as string) & ¬
" characters are selected."
To return a text range object that represents one character, use character index, where index is the
index number. The index number represents the position of a character in the text range. The
following example formats the first letter in the selection as 24-point bold.
set char1 to character 1 of selection
set bold of char1 to True
set font size of font object of char1 to 24
Properties
<Inheritance> text range
Inherits the properties and elements of the text range class.