Define words via Google and AppleScript

Feb 16, '05 08:47:00AM

Contributed by: macg4dave

I love the "define:" tool on Google because:

  1. I am a bad speller
  2. It's nice to see a few different definitions
But I hate having to type define:" every time. So I wrote a very simple AppleScript to get around this:
set googleword to display dialog "What word do you want to define?" ¬
 default answer " "
set findgoogleword to (text returned of the googleword)
do shell script "open http://www.google.com/search?q=define:" ¬
 & findgoogleword
If you don't want to use Google, then all you have to do is change the address and modify the URL bit to match your preferred site's syntax.

Comments (20)


Mac OS X Hints
http://hints.macworld.com/article.php?story=20050212092142555