Re: Forcing NetScape 4.7x to load URL to a new window
Re: Forcing NetScape 4.7x to load URL to a new window
- Subject: Re: Forcing NetScape 4.7x to load URL to a new window
- From: email@hidden
- Date: Fri, 14 Jun 2002 00:58:26 EDT
Marc,
I think you want this (untested, dug up from my own script archives):
OpenURL TheURLPointer toWindow 0 -- opens new browser window
Why aren't you using Netscape Communicator 4.79?
Jeff Baumann
email@hidden
www.linkedresources.com
In a message dated 6/12/02 12:54:07 PM, Marc Glasgow writes:
>
I'm working on a script that concatinates certain text strings to assemble
>
an on-the-fly URL references and then passing this reference to NetScape
>
4.73 (OS 9.2.1/AS 1.6). The load works just fine, but a problem crops up
>
when I try to load multiple URL's in a loop -- the last URL request is the one
>
that gets honored, because the others don't get time to load before the loop
>
updates the request. While I could force it to wait for the load, I'd like to
>
force the URL's to each load in a new window if possible, one that doesn't
>
exist yet at the time of the script's running. I've tinkered with Netscape's
>
internal window numbering scheme and such, and still haven't been able
>
to force it to a new window.
>
>
Shortened example (without a window parameter):
>
Tell Application "Netscape Communicator"
>
set OurStartSeg to "http://www.cyberpoet.net/somefolder/"
>
set OurEndSeg to ".html"
>
set TheCountStart to 50
>
set NumOfPages to 5
>
repeat with GenericLooper from TheCountStart to (TheCountStart + NumOfPages)
>
set OurCount to GenericLooper as text
>
set TheURLPointer to (OurStartSeg & OurCount & OurEndSeg) as text
>
OpenURL TheURLPointer -- always opens in frontmost window
>
end repeat
>
end tell
>
>
Result: original window will load the last page requested fully, in this
>
case, 55.html. The other requests will be over-ridden by the newer request.
_______________________________________________
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.