質問

I would like to programmatically wake up a Mac. I started off by using IOPMSchedulePowerEvent, however, that method requires admin access and privileged helpers. I've implemented and it works but is way too complicated.

I've looked around for a better approach and found that you can schedule the system to wake up by going to, System Preferences -> Energy Saver -> Schedule. Is there a way to programmatically schedule a wake up time using this method?

Thanks.

Edit: I understand the system requires admin access to schedule system wakeup and sleep time. That is ok. I would like to be able to do this programmatically. Having the user authorize the functionality is ok provided that they are only asked once. Subsequent requests to set the system wakeup time should not have to require user authorization.

正しい解決策はありません

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top