Created
July 12, 2015 09:49
-
-
Save omgmog/d82f57d5b2f62e533bf8 to your computer and use it in GitHub Desktop.
Relaunch Spotify
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Then simply set up a cron job | |
$ nano ~/crontab | |
# Paste the following | |
1 0 * * * osascript ~/Desktop/relaunchSpotify.applescript |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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