Tell me more ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I want to write a program that keeps track of exactly when my screen is on.

To do this, I want to run my "make-a-note" program whenever I log in, log out, or turn the screensaver on or off (i.e., lock the screen or suspend).

On my Linux machine, I would do this using dbus-monitor. How should I do this for OSX?

share|improve this question

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.