[Pythonmac-SIG] [py-appscript] is System Events sleeping ?
amorris at mistermorris.com
Sun Jan 30 15:49:23 CET 2011
> I can force my system to sleep, but what I would like is to know when my
> system is going to sleep, to launch some routines behind (like programming
> an alarm to ring after 6 hours).
I'm pretty sure not.
Applescript doesn't let you register callbacks within the system, and
even if you did something with a poll (endless repeat loop), the
repeat loop itself would prevent it from sleeping in the first place.
More information about the Pythonmac-SIG