I currently have a trigger to send a power off command to my SSP, whenever iTunes stops playing.
I would like to add a delay into the trigger that would wait until iTunes has been stopped for XX seconds, then send the command.
However, would also like the power off command to be canceled if iTunes has resumed playing within XX amount of time.
I would assume I could have a script launch on pause /stop of iTunes that could determine the amount of time that has elapsed since said action, watch for itunes to resume playing, canceling the power off command if resumed, and if it has not then execute the power down command.
I have searched around and found system idle time scripts, but none the relate to this situation.
Any pointers would be very much appreciated!
Thanks!
Korey