tell application "Safari"
delay 0.5
repeat until ((do JavaScript "document.readyState" in document 1) is "complete")
delay 0.25
end repeat
-- Action to perform once page is loaded.
end tellThis works with Safari 4 in both Leopard and Snow Leopard.
0 comments:
Post a Comment