Skip to content

Instantly share code, notes, and snippets.

@wadetb
wadetb / gist:7434425
Last active December 28, 2015 03:19 — forked from mayoff/gist:1138816
Updated to take the URL to refresh from the command line arguments.
-- Usage: osascript refresh.scpt https://www.google.com/
-- Be careful to give the final URL after canonicalization, redirects, etc.
on run arg
set theUrl to arg's first item
tell application "Google Chrome"
activate
if (count every window) = 0 then