Proofing Suite
488
autocorrect entry
Plural
autocorrect entries
Represents a single AutoCorrect entry. The autocorrect entry class includes the entries in the
AutoCorrect dialog box (Tools menu).
Use auto correct entry index of autocorrect object, where index is the AutoCorrect entry name or
index number, to return a single autocorrect entry object. You must exactly match the spelling (but
not necessarily the capitalization) of the name as it's shown under Replace in the AutoCorrect
dialog box. The following example sets the value of the AutoCorrect entry named "teh."
set autocorrect value of autocorrect entry "teh" of autocorrect object to "the"
To insert an AutoCorrect entry at the specified range, use the
apply correction
command. The
following example adds an AutoCorrect entry and then inserts it in place of the selection.
make new autocorrect entry at autocorrect object with properties ¬
{name:"hellp", autocorrect value:"hello"}
apply correction autocorrect entry "hellp" of autocorrect object to range ¬
text object of selection object of active document
Use the standard make command to add an AutoCorrect entry to the list of available entries.
The following example adds a plain-text AutoCorrect entry for the misspelling of the word "their."
make new autocorrect entry at autocorrect object with properties ¬
{name:"thier", autocorrect value:"their"}
The following example creates an AutoCorrect entry named "PMO" based on the text and
formatting of the selection.
make new autocorrect entry at autocorrect object with properties ¬
{text range:text object of selection object of active document, ¬
name:"PMO"}
Properties
autocorrect value
Returns or sets the value of the autocorrect entry. Read/write.
entry index
Returns the index number that indicates the position of an item in its container element list.
Read-only.
name
Returns or sets the name of the autocorrect entry. Read/write.
rich text
True if formatting is stored with the autocorrect entry replacement text. Read-only.