Uses the “dict” protocal to search several online databases for the submitted word or term.
OS version: OS X
set the_word to "AppleScript"
return get_definition(the_word)
on get_definition(the_word)
try
return do shell script "cURL " & (quoted form of ("dict://dict.org/d:" & the_word & ":*"))
on error the_err
return the_err
end try
end get_definition