0

Possible Duplicate:
How to wake from sleep programmatically?

I'm trying to see if OS X supports a feature to wake a Mac from sleep at a predetermined time?

PS. I'm obviously asking for an API from a developer's perspective.

Community
  • 1
  • 1
ahmd0
  • 16,633
  • 33
  • 137
  • 233
  • There are apps such as Aurora that do exactly that, so the answer is yes. Not sure where it is in the API though. – gcochard Aug 07 '12 at 21:35
  • So what happens if I've got a MacBook and your program wakes it up with the lid closed? – CodaFi Aug 07 '12 at 21:36
  • I can say from a Window perspective. The notebook wakes up and waits for 2 minutes for a user's input and if there's none, or if a resident program does not extend it, the OS goes back to sleep. I was wondering if OS X has a similar feature? – ahmd0 Aug 07 '12 at 21:38
  • 1
    Yes, you can add power assertions too. See the documentation: http://developer.apple.com/library/mac///#/documentation/IOKit/Reference/IOPMLib_header_reference/Reference/reference.html – Nicholas Riley Aug 07 '12 at 21:41
  • @NicholasRiley: Very nice, thank you. – ahmd0 Aug 07 '12 at 21:42

1 Answers1

-1

See this question: How to wake from sleep programmatically?

Also see OS X's "Wake On Demand" feature. It works with the Bonjour Sleep Proxy on your Airport or Time Capsule: http://support.apple.com/kb/HT3774

Community
  • 1
  • 1
Nicholas Carey
  • 71,308
  • 16
  • 93
  • 135