Skip to content

Instantly share code, notes, and snippets.

@wleii
Created March 8, 2017 08:04
Show Gist options
  • Save wleii/c8cf3a7ad0800bc19fd12de9fdda118e to your computer and use it in GitHub Desktop.
Save wleii/c8cf3a7ad0800bc19fd12de9fdda118e to your computer and use it in GitHub Desktop.
repeat refresh safari use applescript
#!/usr/bin/osascript
tell application "System Events"
repeat
if exists process "Safari" then
tell application "Safari"
activate
end tell
tell process "Safari"
keystroke "r" using {command down}
end tell
delay 60
else
exit repeat
end if
end repeat
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment