Configure iTunes to quit on Sleep
I am looking for a way to make iTunes quit when the computer enters Sleep. (iTunes 12.3, Mavericks) See why below*
I have found scripts for quitting after it's been idle for X time, but I don't know if that's what I want.
I also don't want anything I have to trigger manually, since if I trusted myself to remember to do that, I could just trust myself to quit iTunes!
I found 'SleepWatcher," but it all the documentation is 1) several years old and 2) relies on a lot more familiarity than I have with Terminal....
And notions?
*(Short version, it's part of setting up my iTunes to sync via Dropbox, and iTunes freaks out if more than one version of the same library is in use at one time. I have a script that will quit iTunes on one computer if I open it on the other, but only as long as I'm on my home WiFi network. Since DB is always updating, if I open iTunes on my laptop when I'm not at home, and it can't quit iTunes on my desktop, it will panic and make a conflicted copy of the library, which defeats the whole purpose. OK, maybe not so short version...)
iMac, OS X Mavericks (10.9), 27&" 3.4 Ghz Core i7