Skip to content

Instantly share code, notes, and snippets.

@jhickner
Created September 19, 2012 21:09
Show Gist options
  • Save jhickner/3752274 to your computer and use it in GitHub Desktop.
Save jhickner/3752274 to your computer and use it in GitHub Desktop.
Applescript to reload the current tab in Chrome
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