Text Suite
461
Command: indent first line char width
Indents the first line of one or more paragraphs by a specified number of characters.
Syntax
indent first line 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 first line of each specified
paragraph is to be indented.
Example
This example indents the first line of the first paragraph in the active document by 10 characters.
indent first line char width paragraph 1 of active document count 10
Command: is equivalent
True if the text range to which this command is applied is equal to the range specified by the text
range argument. This command compares the starting and ending character positions, as well as the
story type. If all three of these items are the same for both objects, the objects are equal.
Syntax
is equivalent text range Required. An expression that returns a text range object.
text range text range Required. The text range object thats compared with the expression.
Example
This example compares the selection with the second paragraph in the active document. If the
selection isn't equal to the second paragraph, the second paragraph is selected.
if (is equivalent text object of selection text range text object of ¬
paragraph 2 of active document) is false then
select text object of paragraph 2 of active document
end if
This example compares
Range1
with
Range2
to determine whether they're equal. If the two ranges
are equal, the content of
Range1
is deleted.
set range1 to word 1 of selection
set range2 to word 3 of active document
if (is equivalent range1 text range range2) is true then
delete range1
end if