Microsoft Word Suite
[suggestion mode enumeration] Optional. Specifies the way Word makes spelling suggestions.
Can be one of the following. The default value is spelling word spell word.
spelling word spell word
Word suggests correct spellings for the word or the first
word in the specified range.
spelling word type wildcard
Word suggests replacements that match the search
criteria for a word that contains the question mark (?) or
asterisk (*) wildcard character. This constant is not
supported in the current spell checker.
spelling word type anagram
Word suggests anagrams for the word. Word doesn't
suggest anagrams from a custom dictionary. This
constant is not supported in the current spell checker.
Note This parameter may be ignored, depending on the dictionary file currently in use.
[custom dictionary2custom dictionary10 dictionary] Optional. An expression that returns a
dictionary object. You can specify as many as nine additional dictionaries.
If the word is spelled correctly, the type class property of the returned record returns spelling correct
and the list is empty.
This example looks for alternate spelling suggestions for the first word in the selection. If there are
suggestions, the example runs a spelling check on the selection.
set l1 to list of (get spelling suggestions item to check (content of selection))
if (count of l1) is 0 then
display dialog "No suggestions"
check spelling text object of selection
Command: get story range
Returns a text range that represents the story specified by the story type argument.
get story range document Required. An expression that returns a document object.
story type enumeration Required. Specifies the story range to return. Can be one of the
following: main text story, footnotes story, endnotes story, comments story, text frame story,
even pages header story, primary header story, even pages header footer story, primary
footer story, first page header story, or first page footer story.