Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Possible Duplicate:
Automatically run a program when Mac wakes from sleep

I'm interested in both.

share|improve this question

marked as duplicate by Chealion, BinaryMisfit Oct 5 '10 at 7:24

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.

Check out a program called SleepWatcher at

share|improve this answer
You need to set at least one other option (i.e. empty wakeup script or similar). The function parseArgs in the source code does not consider --plug and --unplug sufficient and complains sleepwatcher: no useful options set. – Daniel Beck Oct 4 '10 at 21:47
I was able to fix the source code, works like a charm. Add ` && ! args.plugcommand && ! args.unplugcommand` to line 506 inside the condition, make the source file and mv the finished program to its /usr/local/sbin/ destination. – Daniel Beck Oct 4 '10 at 21:58
I just saw the OP does not need those functions. I'm keeping the comments up for when someone searches for the application or the error message. – Daniel Beck Oct 4 '10 at 22:13

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