The next beta will have two optional methods your plugin can subclass:
- Code: Select all
def prepareToSleep(self):
def wakeUp(self):
Sounds like you are most interested in wakeUp, but you can also get called before the Mac goes to sleep. But note that Indigo Server will only give the plugin about five seconds before it tells the OS to proceed with the sleep operation.