Re: and people wonder why I curse Microsoft
Re: and people wonder why I curse Microsoft
- Subject: Re: and people wonder why I curse Microsoft
- From: Bill Briggs <email@hidden>
- Date: Tue, 8 Oct 2002 08:48:31 -0300
At 9:15 AM +0100 08/10/02, John Delacour wrote:
At 9:35 pm -0300 7/10/02, Bill Briggs wrote:
So I'm putting some error traps in an IE script to deal with the
possibility of a blank window (no URL). Well, some browsers throw an
error, some return a "", one even returns "about:blank"
That one being IE until about a two days ago!
Actually, I got the "about:blank" in an older version of Netscape
(4.61) too, though newer versions behave differently.
If in Prefernces/Browser Display you clicked the 'none' button, it
filled in 'about:blank', so far as I recall.
If you click 'none' in 5.2.2, you get a real blank, but my app gives
no garbage
It's a version thing. I get "about:blank?untitled=yes" with IE 5.x
too. This script has to cover some earlier versions of IE and it's
version 4.5 that's returning the garbage string in the URL location.
Don't think it has anything to do with my particular setup.
The question is, what the heck is that stream of garbage?
Something peculiar to your set-up so far as I can tell. Which
version sre you using?
As usual, I've got more than one version to deal with. But as
indicated above, it's 4.5 that returns the odd string.
Although I use Omniweb most of the time, I actually like IE and
always have. Everything else I've looked at, except Omniweb, is
useless.
For scripting, iCab has the best behaviour (IMHO). When you ask it
for the URL of the front window it returns "" if there's no URL, and
false if there's no window. Others do different things (ones with no
window objects requiring extra commands to extract the same info) and
most throw errors if there's no window. Netscape can even have an
invisible window named "Java Console" as the "front window", but it's
not always there. You still have to test for it. Not sure what
versions of Netscape it doesn't apply to, so I test for it with all
of them to be sure.
On X I use OmniWeb too, but it's got some Java problems so some of
the comics pages I want to load by script in the morning don't
retrieve the cartoon (I got a note from the Omni Group indicating
that they were aware of the Java problem). I think they just put out
a new version a few days ago, but I haven't loaded it yet to see if
the Java has been fixed. On the whole I like OmniWeb, but it has some
really nasty performance problems if you open a lot of web pages and
then switch to another application to do work. But that's not related
to scripting.
- web
_______________________________________________
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.