Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

Apple new feature of OS X 10.8 in new Macs "Power Nap" checks email and does make backups.

Is it possible to execute a custom script (bash, AppleScript,...) when OS X 10.8 is in Power nap mode? For example pull a git repository or download files.

share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

As far as I know, it's not possible.

The reason is that Power Nap doesn't have an API that 3rd party apps can hook into (so apps could trigger a wake event or be notified when one occurs).

Whether this will remain like that in the future depends upon Apple. It would be interesting to see if there's a simple way to detect when one is in power nap mode, but doesn't seem to be available afaik.

If you leave a script that pulls from git every minute, in theory, since Power Nap is really a power on without graphics and audio state, maybe it would get executed (if it was running before). untested.

More info: http://stackoverflow.com/a/11692367/2684

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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