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