Re: Detecting when URL has been loaded in Safari???
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 12:00:43 -0400
Except you get an infinite loop if the window happens to already be on
www.redmeat.com. :)
On Tue, Sep 29, 2009 at 11:17 AM, email@hidden <email@hidden> wrote:
>
>
>> This doesn't work if the URL you set is changed once the page is loaded,
>> e.g.
>
> How about this?
> tell application "Safari"
> activate
> set myWIndow to make new document at beginning
> set newURL to URL of myWIndow
> set URL of document 1 to "http://www.redmeat.com"
> repeat
> if URL of document 1 is not newURL then exit repeat
> delay 1
> end repeat
> end tell
>
> HTH,
>
> ES
>
> _______________________________________________
> 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