Proofing Suite
499
Commands
apply correction..........................................................................................................................................................499
get synonym list for ...................................................................................................................................................499
get synonym list from................................................................................................................................................500
Command: apply correction
Replaces a range with the value of the specified AutoCorrect entry.
Syntax
apply correction autocorrect entry Required. An expression that returns an autocorrect entry
object .
to range text range Required. The textrange object that's replaced by the AutoCorrect entry.
Example
This example adds an AutoCorrect replacement entry, then applies the "sr" AutoCorrect entry to the
selected text.
make new autocorrect entry at autocorrect object with properties ¬
{name:"sr", autocorrect value:"Stuart Railson"}
apply correction autocorrect entry "sr" of autocorrect object to range ¬
text object of selection of active document
This example applies the "sr" AutoCorrect entry to the first word in the active document.
apply correction autocorrect entry "sr" of autocorrect object to range ¬
word 1 of active document
Command: get synonym list for
Returns a list of synonyms for a specified meaning of a word or phrase. The list is returned as an
array of strings. Read-only.
Syntax
get synonym list for synonym info Required. An expression that returns a synonym info object.
item to check Unicode text Required. The meaning as a string.
Example
This example returns a list of synonyms for the word "big," using the meaning "considerable" in U.S.
English.
set synInfo to get synonym info object item to check "big" ¬
language id english us
set sList to get synonym list for synInfo item to check "considerable"
repeat with i in sList
display dialog i
end repeat