Omniweb applescripting...

Peter Nicholson superhancpetram at gmail.com
Thu Jan 19 18:54:48 PST 2006


On Tuesday, Jan 17, 2006, at 17:05 US/Eastern, <erikness at tds.net> wrote:

> Greetings,
>
> I'm exploring OmniWeb as an alternative to iCab, which I love but that 
> just
> keeps crashing. One thing I wonder: Can OminWeb grab the plain text of 
> a
> web page without resorting to UI scripting?
>
> In safari it goes like this:
> tell application "Safari"
> 	activate
> 	set title to name of window 1
> 	set body to text of document 1
> end tell
> return {title, body}

Erik,

I copied your script and ran it (replacing "Safari" with "Omniweb") and 
got "NSCannotCreateScriptCommandError" for Omniweb. Fiddling around a 
bit revealed that the script had no problem returning the window name, 
but I got nothing but error messages trying to access the 'text'. No go 
also with Firefox. It worked fine as you say in Safari.

Peter Nicholson
powerbook g3/500 / 10.2.8



More information about the OmniWeb-l mailing list