Jump to content

SpotifyKiller (for sleep)

Sleep Spotify

  • Please log in to reply
No replies to this topic

#1
drdaz

drdaz

    InsanelyMac Protégé

  • Members
  • Pip
  • 46 posts
I finally got tired of Spotify keeping my iMac awake even when it's not playing, so I learned some AppleScript and whipped up a little hack that quits the Spotify app when my machine would otherwise like to sleep (if it isn't playing).

I've implemented it by checking the System Sleep Energy Saver setting for AC Power... so if you're on a laptop you might want to adjust the System Sleep setting for AC Power under Energy Saver. Or you might want to alter the script so that it checks the setting for battery power.

Even though I'm not using a Hackintosh anymore, I do remember the quest for sleep being a difficult one, so I figured this might help some of you :)

To run it, just double-click. To have it run on startup, add it to startup items for your user.

Attached Files







Also tagged with one or more of these keywords: Sleep, Spotify


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

© 2014 InsanelyMac  |   News  |   Forum  |   Downloads  |   OSx86 Wiki  |   Mac Netbook  |   PHP hosting by CatN  |   Designed by Ed Gain  |   Logo by irfan  |   Privacy Policy