|
Are you saying that when you run this script and the machine wakes up that it doesn't start iTunes? It should, as long as the script is running.
To manually pause and stop, you have to add code to read and write prefs. Effectively, you have to toggle a pref in response to a key command or on screen button press. Then, you have to check both the iTunes state AND the pref state. If the pref state says you pushed a pause key/button, it drops out of the script. When you toggle that pref again, it restarts iTunes.
|