Microsoft Word Suite
318
Command: redo
Redoes the last action that was undone (reverses the
undo
command). Returns true if the actions
were redone successfully.
Syntax
redo document Required. An expression that returns a document object.
[times integer] Optional. The number of actions to be redone.
Example
This example redoes the last two actions in the Sales.doc redo list.
redo document "Sales.doc" times 2
Command: reject
Rejects the specified tracked change. The revision marks are removed, leaving the original text
intact.
Note Formatting changes cannot be rejected.
Syntax
reject revision Required. An expression that returns a revision object.
Example
This example rejects the tracked changes in the first paragraph.
set myRange to text object of paragraph 1 of active document
repeat with myRev in (get revisions of myRange)
reject myRev
end repeat
This example rejects the first tracked change in the selection.
set myRange to text object of selection
reject revision 1 of myRange
Command: reject all revisions
Rejects all tracked changes in the specified document.
Syntax
reject all revisions document Required. An expression that returns a document object.
Example
This example checks the main story in the active document for tracked changes, and if there are any,
the example rejects all revisions in all stories in the document.
if (count of revisions of active document) 1 then ¬
reject all revisions active document