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

I'm interested in both.

link|improve this question

feedback

closed as exact duplicate by Chealion, Diago Oct 5 '10 at 7:24

This question covers exactly the same ground as earlier questions on this topic; its answers may be merged with another identical question. See the FAQ for guidance on how to improve it.

1 Answer

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

link|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
feedback

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