There are a bunch more factors in play here, including: For Macs with a battery, whether it’s connected to mains power or not. Various preferences in System Settings > Battery, and specifically those under Options. Lots of wacky options under pmset (see the pmset man page for more). But these are all implementation details. From an API perspective, launchd doesn’t guarantee anything about the power state of the system when it starts your job based on StartCalendarInterval. Usually daemons aren’t expected to interact with the user, and thus it doesn’t really matter what the UI state of the system is when the system starts your job. To offer more specific guidance here, I’d need to know more about what your job does. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Topic:
App & System Services
SubTopic:
Core OS
Tags: