Text Suite
447
Command: check spelling
Begins a spelling check for the specified text range. If the text range contains errors, this command
displays the Spelling and Grammar dialog box (Tools menu), with the Check grammar check box
cleared.
Syntax
check spelling text range Required. An expression that returns a text range object.
[custom dictionary dictionary] Optional. Either an expression that returns a dictionary object or
the file name of the custom dictionary.
[ignore uppercase Boolean] Optional. True if capitalization is ignored. If this argument is
omitted, the current value of the ignore uppercase property is used.
[main dictionary dictionary] Optional. Either an expression that returns a dictionary object or
the file name of the main dictionary.
[custom dictionary2custom dictionary10 dictionary] Optional. Either an expression that
returns a dictionary object or the file name of an additional custom dictionary. You can specify
as many as nine additional dictionaries.
Example
This example begins a spelling check on all available stories of the active document.
check spelling text object of active document
This example begins a spelling check on section two of MyDocument.doc. The spelling check
includes words in all uppercase letters, and it checks words against two custom dictionaries as well
as the main dictionary.
set range2 to text object of section 2 of document "MyDocument.doc"
check spelling range2 custom dictionary dictionary "MyWork" ¬
custom dictionary2 dictionary "MyTechnical"
This example begins a spelling check on the selection.
check spelling text object of selection
This example displays the result of a spelling check on the selection.
set pass to check spelling text object of selection
display dialog "Selection has no spelling errors: " & pass
Command: check synonyms
Displays the Thesaurus pane of the Reference Tools in the Toolbox (Thesaurus command, Tools
menu), which lists alternative word choices, or synonyms, for the text in the specified range.
Syntax
check synonyms text range Required. An expression that returns a Range object.