Jump to content



Member Since 25 Nov 2005
Offline Last Active Apr 09 2013 05:26 PM

Topics I've Started

SpotifyKiller (for sleep)

04 April 2013 - 07:48 PM

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.
© 2017 InsanelyMac  |   News  |   Forum  |   Downloads  |   OSx86 Wiki  |   Designed by Ed Gain  |   Logo by irfan  |   Privacy Policy