Skip to content

Instantly share code, notes, and snippets.

@tjokimie
Last active January 19, 2022 15:08
Show Gist options
  • Save tjokimie/4b4fcc7c44d47981a55f18fc81dbed5f to your computer and use it in GitHub Desktop.
Save tjokimie/4b4fcc7c44d47981a55f18fc81dbed5f to your computer and use it in GitHub Desktop.
Open dashboard on Safari and refresh
tell application "Safari"
activate
tell application "System Events"
keystroke "f" using {control down, command down}
end tell
repeat
try
delay 60 -- 60 seconds
set URL of document of window 1 to URL of document of window 1
on error
-- do nothing
end try
end repeat
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment