Re: which webbrowser (apart from safari) is very well scriptable?
Re: which webbrowser (apart from safari) is very well scriptable?
- Subject: Re: which webbrowser (apart from safari) is very well scriptable?
- From: Martin Orpen <email@hidden>
- Date: Tue, 06 Apr 2004 10:06:22 +0100
on 6/4/04 8:14 am, leo at email@hidden wrote:
>
hi there
>
>
want to code a little helper script what launches a translation site in a
>
webbrwoser.
>
>
this action should be independent (reagrading wndow size defauilts, etc) of
>
my usual webbrowser s(safari and IE), so i need another browser app. but
>
what other browser is well scriptable?
>
>
has anybody experience or recommendations?
Well, when you say "scriptable"...
I'd recommend Lynx (Terminal Browser), because it's easy and fast to grab
relevant text when you ignore all those pesky graphics and fancy scripts
that slow things down.
I use the following script menu script if for the Terminal:
set searchTerm to (text returned of (display dialog "What word would you
like to define?" default answer ""))
set myURL to "'
http://dictionary.reference.com/search?q=" & searchTerm &
"'"
tell application "Terminal"
do script "lynx -dump -nolist -pseudo_inlines " & myURL & " | tail
-n +13 | less -r" in window 1
end tell
(the "do script" is a corrupted version of a shell script that I found on
the web)
Which is a lot simpler than curling the information and then trying to get
rid of all the html and java etc that is returned.
If you wanted a proper interface you could knock one up in Xtools in 10
minutes :-)
--
Martin Orpen
Idea Digital Imaging Ltd -- The Image Specialists
http://www.idea-digital.com
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.