Am 30.01.2011 um 16:12 schrieb Fandekasp:
Ok so the only solution for me is to map a sleep key which will
call my
program and plan some tasks (threading.Timer), and my program will
force my
system to sleep after that.
If you're willing to dive into pyobjc, NSWorkspace may help you.
Ask
Ok so the only solution for me is to map a sleep key which will call my
program and plan some tasks (threading.Timer), and my program will force my
system to sleep after that.
Thank you Adam for your answer !
On 30 January 2011 14:49, Adam Morris wrote:
> Hi there,
>
> > I can force my system t
Hi there,
> 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
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 behi