Created
February 10, 2011 15:59
-
-
Save yanyaoer/820761 to your computer and use it in GitHub Desktop.
reload firefox or chrome
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
tell application "Firefox" to activate | |
tell application "System Events" | |
if UI elements enabled then | |
keystroke "r" using command down | |
keystroke tab using command down | |
end if | |
end tell | |
tell application "Google Chrome" | |
tell active tab of first window | |
execute javascript "window.location.reload()" | |
end tell | |
end tell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment