Re: Safari 3 beta, tab object and AppleScript
Re: Safari 3 beta, tab object and AppleScript
- Subject: Re: Safari 3 beta, tab object and AppleScript
- From: Bill Briggs <email@hidden>
- Date: Tue, 12 Jun 2007 14:37:31 -0300
At 10:18 AM -0700 6/12/07, Philip Aker wrote:
>>I also note that there is still no busy status indicator for a loading window, which is rather annoying. It would be exceedingly useful.
>
>I'm just doing the download now. Are you talking about what is displayed in the Status bar or something else?
No, I mean a busy status that you can get with a script. In old versions of Netscape you could request the busy status of a window and it would return a 0, 1, or 2, depending whether or not the window was done loading (0), loading but can be interrupted with a new load request (1), loading and can't be interrupted (2).
This is missing from most browsers, but I see that the most recent version of iCab has it. If one uses:
set n to 2
tell application "iCab"
repeat
set n to (get busy of window 1)
if n = 0 then
exit repeat
end if
delay 0.1
end repeat
-- load next page, etc.
end tell
it will only move on to load the next page (or perform whatever task) after the page has completed loading.
It would be nice to have this feature in Safari.
I wrote to the author of iCab two or three years ago and asked for better AppleScript support, including the busy status indicator, and here it is. Took a bit of time, but whatever. Hadn't checked for this in a long time, so maybe he did it ages ago.
- web
_______________________________________________
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