Re: Shutdown Mac OSX computer using python

2008-12-08 Thread has
On 8 Dec, 09:26, Håkan Hagenrud <[EMAIL PROTECTED]> wrote: > Hello, i'm a python noob! > > But I would like to shutdown a 10.5.x mac computer using python (2.5.1) > > this is my code: > #!/usr/bin/python > import SystemEvents > down = SystemEvents.Power_Suite.Power_Suite_Events() > down.shut_down()

Re: Shutdown Mac OSX computer using python

2008-12-08 Thread Wolfgang Draxinger
Håkan Hagenrud wrote: > Hello, i'm a python noob! > > But I would like to shutdown a 10.5.x mac computer using python > (2.5.1) > > this is my code: > #!/usr/bin/python > import SystemEvents > down = SystemEvents.Power_Suite.Power_Suite_Events() > down.shut_down() > > the last call needs an add

Shutdown Mac OSX computer using python

2008-12-08 Thread Håkan Hagenrud
Hello, i'm a python noob! But I would like to shutdown a 10.5.x mac computer using python (2.5.1) this is my code: #!/usr/bin/python import SystemEvents down = SystemEvents.Power_Suite.Power_Suite_Events() down.shut_down() the last call needs an additional argument, I cant find any documentat