Text Suite
478
Command: relocate
In outline view, moves the paragraphs within the specified text range after the next visible
paragraph or before the previous visible paragraph. Body text moves with a heading only if the
body text is collapsed in outline view or if it's part of the range.
Syntax
relocate text range Required. An expression that returns a text range object.
direction enumeration Required. The direction of the move. Can be either of the following:
relocate up or relocate down.
Example
This example moves the third, fourth, and fifth paragraphs in the active document below the next
(sixth) paragraph.
set theStart to start of content of text object of paragraph 3 of the active ¬
document
set theEnd to end of content of text object of paragraph 5 of the active ¬
document
set myRange to set range text object of the active document start theStart ¬
end
theEnd
set view type of view of the active window to outline view
relocate myRange direction relocate down
This example moves the first paragraph in the selection above the previous paragraph.
set view type of view of the active window to outline view
relocate text object of paragraph 1 of selection direction relocate up
Command: reset
Removes manual paragraph formatting (formatting not applied using a style). For example, if you
manually right align a paragraph and the underlying style has a different alignment, the reset
command changes the alignment to match the formatting of the underlying style.
Syntax
reset paragraph/paragraph format Required. An expression that returns a paragraph or
paragraph format object.
Example
This example removes manual paragraph formatting from the second paragraph in the active
document.
reset paragraph 2 of the active document