[Pythonmac-SIG] [py-appscript] is System Events sleeping ?

Fandekasp fandekasp at gmail.com
Sun Jan 30 13:08:02 CET 2011


Hello,

I'm a new user of appscript, and I can't find a way to know when my computer
is sleeping or not.

with :

> from appscript import *

app("System Events").sleep()


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 searched for an argument who could tell me this, but didn't find any. Is
it at least possible ?

Thank you very much for your help
Best regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pythonmac-sig/attachments/20110130/352982d4/attachment.html>


More information about the Pythonmac-SIG mailing list