Created
April 2, 2012 18:43
-
-
Save ernesto-jimenez/2286214 to your computer and use it in GitHub Desktop.
Automatically reload your active tab in Chrome. See the comments for instructions.
This file contains 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
#!/usr/bin/env osascript | |
# | |
# This AppleScript reloads Google Chrome. It can be used in combination kicker | |
# gem to automatically reload google chrome when you save a file from your app. | |
# | |
# Usage for a rails app: | |
# 1) Place this file in $RAILS_ROOT/script/reload_chrome | |
# 2) Install the kicker gem: gem install kicker | |
# 3) Run: kicker -e script/reload_chrome app public | |
# | |
# Now, every time you save a file in the folders app or public Chrome will | |
# reload your active tab. | |
tell application "/Applications/Google Chrome.app" | |
tell active tab of first window | |
reload | |
end tell | |
end tell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment