Post your comments for QuicKeys 4 here
Page 1 of 1
QuicKeys 4
#2
Posted 07 May 2010 - 06:17 AM
I'm surprised it took so long to review it. It's been out quite a while now. Be that as it may, glad to see the review.
Here's a tip: One Applescript command I find VERY handy is to call up a Safari Javascript to test to see if a page is done loading. Saves me a lot of hassle of finding a pause that is long enough in every circumstance.
tell application "Safari"
activate
delay 1
repeat
-- use Safari's 'do JavaScript' to check a page's status
if (do JavaScript "document.readyState" in document 1) is "complete" then exit repeat
delay 1 -- wait a second before checking again
end repeat
delay 1
end tell
Here's a tip: One Applescript command I find VERY handy is to call up a Safari Javascript to test to see if a page is done loading. Saves me a lot of hassle of finding a pause that is long enough in every circumstance.
tell application "Safari"
activate
delay 1
repeat
-- use Safari's 'do JavaScript' to check a page's status
if (do JavaScript "document.readyState" in document 1) is "complete" then exit repeat
delay 1 -- wait a second before checking again
end repeat
delay 1
end tell
Eric
Nothing in all the world is more dangerous than sincere ignorance and conscientious stupidity. - Martin Luther King, Jr.
Nothing in all the world is more dangerous than sincere ignorance and conscientious stupidity. - Martin Luther King, Jr.
#3
Posted 07 May 2010 - 12:55 PM
If you have QuicKeys, you don't need to run a javascript to to check if a page is done loading, just add a Wait step for the Stop command in the View menu. When it's no longer available, the page is loaded.
#4
Posted 10 May 2010 - 08:09 AM
Would it be unfair to suggest this seems to be a Mac version of DOS "batch file" ..??
Share this topic:
Page 1 of 1
Help











