What is this?
This is a script to move the insertion point to the beginning of
the message before starting spell check.
Under certain circumstances the 'Start At Top' setting of the
Check Spelling dialog gets switched off. I don't always notice
and end up only spell checking the end of my message (usually
nothing but my name). This script will first record the current
selection, then move the insertion point to the beginning of the
message. After the spell check is complete, the script will
reset the original selection.
If the selection is more than zero characters, then the script
does not change the selection, in order to enable the 'Selection
Only' option the Check Spelling dialog. The script will beep in
this case, giving you a warning that you may want to unselect
text first.
One side effect of this script is that the selection will revert
back even if misspelled words were found. Usually the last
misspelled word would be selected after doing a spell check.
Note: the name of the script needs to match menu and menu item
spelling exactly. The 'Check Spelling…' item name ends with an
ellipses, not three periods. The ellipses is created by typing
opt-; (option semi-colon).
|