Created
February 20, 2014 18:30
-
-
Save case/9120184 to your computer and use it in GitHub Desktop.
AppleScript to refresh a Chrome tab at a regular interval
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set counter to 0 | |
tell application "Google Chrome" | |
repeat | |
tell the active tab of its first window | |
reload | |
set counter to counter + 1 | |
log counter | |
end tell | |
delay 5 | |
end repeat | |
end tell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We were debugging a timing issue in a webapp, and needed to refresh the page a bunch of times to watch for the error state. This was quick and dirty, and obviously has room for improvement, but it got the job done. The counter output appears in the Script Editor app's
Events
pane: