Possible Duplicate:
Run AppleScript after waking from Sleep?

I have a program, InstantShot!, set to launch at logon and start taking a screen shot every 10 seconds. Unfortunately, when I close the lid, it stops taking screenshots, rather than just being suspended, so I have to manually have it start doing so again each time I reopen the lid. I'd like to create an automator app or Apple Script that would do that automatically every time I open the lid. Can that be done?

marked as duplicate by Mark, nohillside, Stu Wilson, jmlumpkin, Gerry Oct 29 '12 at 15:31

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


Use SleepWatcher. After downloading, read the ReadMe. It says how to install and use.

Not the answer you're looking for? Browse other questions tagged or ask your own question.