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?
|
migrated from stackoverflow.com Jun 29 '12 at 16:41
|
Maybe try Sleepwatcher. Can't vouch for it, but found it after following Kevin's tips:
|
|||
|
|
|
Depending on the problem you're trying to solve, launchd might work. It will run tasks that were scheduled while the machine is asleep when it wakes up. It's also smart enough to only run one instance of the task if several intervals have passed while the machine was asleep. See Getting Started with launchd from Apple. |
|||
|
|
|
I believe SleepWatcher can provide the functionality you are looking for. |
|||
|
|