Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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, Diago 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.

1 Answer 1

Check out a program called SleepWatcher at www.bernhard-baehr.de.

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
1  
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.