• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Detecting when URL has been loaded in Safari???
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Detecting when URL has been loaded in Safari???


  • Subject: Re: Detecting when URL has been loaded in Safari???
  • From: "Mark J. Reed" <email@hidden>
  • Date: Tue, 29 Sep 2009 09:26:41 -0400

How are you scanning?  If the problem is what you think it is, then
simply loop until the URL of the new window returns what you just set
it to, with a small delay of course.

On Tuesday, September 29, 2009, Dave <email@hidden> wrote:
> Hi All,
>
> I have a script that open a Web Page, call it http://www.mydomain.com/something. The requirement is to have only one Safari Window open to the "http://www.mydomain.com";. My Script scans each window in Safari and closes windows that are set to "http://www.mydomain.com"; if there is more than one open. All works well generally, but (why is there always a "but' ?!?), but the first time I run the Script I get two windows after my Script has ended. I think the reason is that the first URL is requested and the Script continues and exits, then it is called again before the first request has actually loaded into Safari, so it doesn't return the URL of the window that is loading and it opens a second window!
>
> My question is this:
>
> After doing this:
>
> set myWIndow to (make new document with properties {URL: myURL})
>
> is there any way to wait until this URL has 100% loaded before continuing?
>
> Thanks in Advance.
>
> All the Best
> Dave
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> AppleScript-Users mailing list      (email@hidden)
> Help/Unsubscribe/Update your Subscription:
> Archives: http://lists.apple.com/archives/applescript-users
>
> This email sent to email@hidden
>

--
Mark J. Reed <email@hidden>
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >Detecting when URL has been loaded in Safari??? (From: Dave <email@hidden>)

  • Prev by Date: Re: Detecting when URL has been loaded in Safari???
  • Next by Date: TextEdit window not marked as changed
  • Previous by thread: Re: Detecting when URL has been loaded in Safari???
  • Next by thread: check alias
  • Index(es):
    • Date
    • Thread