How to run commands when mac is idle and when it resumes

Posted by tig on Super User See other posts from Super User or by tig
Published on 2010-05-09T13:41:15Z Indexed on 2010/05/09 13:49 UTC
Read the original article Hit count: 335

Filed under:
|
|

I want to run script when my mac is idle (for example after 5 minutes or screen saver start time is also ok) and when I resume it from idle state.

I know that I can write daemon using NSDistributedNotificationCenter and com.apple.screenIsLocked and com.apple.screenIsUnlocked, but I hope that there is already solution without creating new daemon.

I need this to for example turn on/off speed limit for Transmission (as it is sometimes hard to work when hashing/downloading on full speed).

© Super User or respective owner

Related posts about mac

Related posts about idle