Look Up Term on thesaurus.com

Compatibility: 4.2.3? - 5.0.1? - 5.0.2b20? - 5.1.2 - 6.0 - MacOS - Windows

getDefinition() sends a query to thesaurus.com to look up synonyms of a word.

This script was inspired by Eric A. Folley's getDefinition script (see Look Up Term on dictionary.com). It's a straightforward use of the webbrowser verbs:

on LookUpInThesaurus( term = "" )
   << By Samuel Reynolds 
   local
      rogetsUrl = "http://www.thesaurus.com/cgi-bin/htsearch?config=roget&words="
   if ( term == "" )
      frontier.bringToFront()
      if ! dialog.ask( "Term to look up in thesaurus?", @term )
         return
   local
      theUrl = rogetsUrl + string.replaceAll( term, " ", "+" )
   webbrowser.bringToFront()
   webbrowser.openURL( theUrl )


This page is a Fat Page. It includes the above script(s), encoded by and for Frontier. To retrieve the script(s), save the page as source text and open it using the File->Open command.

Copyright © 1998, 1999 by Samuel Reynolds. All rights reserved. Last modified 1999/05/20.
Built with Frontier v.6.0 on Macintosh OS 8.1 on 1999/05/23.