Re: Spellcheck a list
Re: Spellcheck a list
- Subject: Re: Spellcheck a list
- From: Jan Steinman <email@hidden>
- Date: Mon, 4 Oct 2004 06:06:51 -0700
From: Graff <email@hidden>
you can use the "grep" command:
...
do shell script "grep " & quotedWord & " /usr/share/dict/words"
With a bit of regular expressions thrown in you could have a decently
powerful spell checker.
If you aren't going to use regular expressions, then fgrep(1) is much
faster than grep, although the difference is hardly noticeable unless
you're really crunching a huge file. ("f" as is "fixed strings" as
opposed to regular expressions.)
:::: We are like tenant farmers chopping down the fence around our
house for fuel when we should be using nature's inexhaustible sources
of energy - sun, wind and tide. I'd put my money on the sun and solar
energy. What a source of power! I hope we don't have to wait until oil
and coal run out before we tackle that.
-- Thomas Alva Edison (1847-1931)
:::: Jan Steinman <mailto:email@hidden/Image/80BF02>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden