Skip to content

Instantly share code, notes, and snippets.

@omgmog
Created July 12, 2015 09:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save omgmog/d82f57d5b2f62e533bf8 to your computer and use it in GitHub Desktop.
Save omgmog/d82f57d5b2f62e533bf8 to your computer and use it in GitHub Desktop.
Relaunch Spotify
# Then simply set up a cron job
$ nano ~/crontab
# Paste the following
1 0 * * * osascript ~/Desktop/relaunchSpotify.applescript
tell application "Spotify"
quit
end tell
delay 2 -- Wait for Spotify to close
tell application "Spotify" to activate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment