xsulbg
Last Updated: February 25, 2016
·
136
· wojtekkruszewsk

Reload Chrome tab with a global shortcut

Apple Script to reload current tab in chrome:

tell application "Google Chrome"
    reload active tab of window 1
end tell

I bind it to a global shortcut in Alfred (this requires wrapping in alfred_script callback. Also I'm using Canary for previewing site in development so application name is adjusted:

on alfred_script(q)
    tell application "Google Chrome Canary"
        reload active tab of window 1
    end tell
end alfred_script

If you want reloading automatically on file changes there's LiveReload and plenty alternatives software.