Re: Scripting Additions: Embracing the Horror of Unix
Re: Scripting Additions: Embracing the Horror of Unix
- Subject: Re: Scripting Additions: Embracing the Horror of Unix
- From: Reinhold Penner <email@hidden>
- Date: Wed, 30 Jan 2002 21:12:19 -1000
Jon,
>
I decided to lookup dichotomy, so I used this nifty Eudora script:
>
>
tell application "Eudora"
>
set t to selected text
>
end tell
>
tell application "Internet Explorer"
>
GetURL "http://www.dictionary.com/cgi-bin/dict.pl?term=" & t
>
Activate
>
end tell
>
>
Try and do THAT in perl or a shell script. And I know that dict.pl
>
*is* a perl script, OK?
You asked for it:
do shell script "curl
http://www.dictionary.com/cgi-
bin/dict.pl?term=dichotomy"
I could decode the HTML as well and just return the resultItemStart
portions of the page. I really think that the AS access to the shell is
the single most significant advance in the history of AS.
-Reinhold