Created
September 19, 2012 21:09
-
-
Save jhickner/3752274 to your computer and use it in GitHub Desktop.
Applescript to reload the current tab in 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 "Google Chrome" | |
activate | |
tell application "System Events" | |
tell process "Google Chrome" | |
keystroke "r" using {command down, shift down} | |
end tell | |
end tell | |
end tell | |
-- Save that in a text file somewhere and run it from terminal with: | |
-- osascript name_of_file.applescript | |
-- I usually want to refocus iTerm after reloading Chrome, so I tack | |
-- this onto the end of the script: | |
tell application "iTerm" to activate | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment