Home » Questions » Computers [ Ask a new question ]

Run script on suspend/resume in Mac OS X

Run script on suspend/resume in Mac OS X

Is there any way to automatically run a script on suspend/resume (i.e. when I close the lid, or after opening it) under Mac OS X 10.4?

Asked by: Guest | Views: 136
Total answers/comments: 2
Guest [Entry]

"Maybe try Sleepwatcher. Can't vouch for it, but found it after following Kevin's tips:

SleepWatcher 2.0.5 (now compatible
with Mac OS X 10.5 “Leopard”) is a
command line tool (daemon) for Mac OS
X that monitors sleep, wakeup and
idleness of a Mac. It can be used to
execute a Unix command when the Mac or
the display of the Mac goes to sleep
mode or wakes up or after a given time
without user interaction. It also can
send the Mac to sleep mode or retrieve
the time since last user activity."
Guest [Entry]

I believe SleepWatcher can provide the functionality you are looking for.