Credits goes to Nikhil Gopal 😃
The script is quite old(2011), I made a few changes to adapt my system. It looks like you can not specify songs or playlist. It doesn't work. Also you can not play music if your Spotify is not open.
- Download the applescript
- Open up your Terminal and type in
crontab -e
and set your prefer alarm time. For more detailcrontab
documentation, check http://www.adminschoice.com/crontab-quick-reference - Go to System Preference and energy saver to set your Mac automated start up time.(You need to make sure your Mac is connected to a power adapter and leave screen open.)
- Make sure your Mac start up before your scheduled time.
- Make sure your Spotify is open and your song/list is in the queue.