Text Suite
460
This example determines whether
Range1
and
Range2
are in the same story. If they are, bold
formatting is applied to
Range1
.
set range1 to word 1 of selection
set range2 to set range text object of active document start 20 end 100
if (in story range1 text range range2) is true then
set bold of range1 to true
end if
Command: indent
Indents one or more paragraphs by one level.
Note Using this command is equivalent to clicking the Increase Indent button under Bullets and
Numbering on the Formatting Palette.
Syntax
indent paragraph Required. An expression that returns a Paragraph or Paragraphs object.
Example
This example indents all the paragraphs in the active document twice, and then it removes one level
of the indent for the first paragraph.
indent paragraphs of active document
indent paragraphs of active document
outdent paragraph 1 of active document
Command: indent char width
Indents one or more paragraphs by a specified number of characters.
Syntax
indent char width paragraph/paragraph format Required. An expression that returns a
paragraph or paragraph format object.
count integer Required. The number of characters by which the specified paragraphs are to be
indented.
Using this command is equivalent to clicking the Increase Indent button under Bullets and
Numbering on the Formatting Palette.
Example
This example indents the first paragraph of the active document by 10 characters.
indent char width paragraph 1 of active document count 10