Created
October 12, 2010 20:18
-
-
Save tvandervossen/622829 to your computer and use it in GitHub Desktop.
Reload browser on save Kicker recipe
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
process do |files| | |
execute("osascript -e 'tell application \"WebKit\" | |
do JavaScript \"window.location.reload()\" in first document | |
end tell'") | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I use this Kicker recipe for almost any JavaScript and/or HTML/CSS project I work on to automatically reload the browser window every time I save something in the project directory.
You can replace 'WebKit' with 'Safari' if that's what you prefer. More information on Kicker can be found at http://github.com/alloy/kicker