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: Andy Wylie <email@hidden>
- Date: Wed, 12 Jun 2002 18:08:05 +1200
on 12/6/02 5:53 PM +1200: email@hidden wrote:
>
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.
>
Putting a counter in the loop and and open url to window counter should do
the trick.
_____________________________ Andy
_______________________________________________
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.