Shutdown Mac OSX computer using python

Håkan Hagenrud hakan.hagenrud at
Mon Dec 8 10:26:05 CET 2008

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:
import SystemEvents
down = SystemEvents.Power_Suite.Power_Suite_Events()

the last call needs an additional argument, I cant find any  
documentation about this. Anybody knows?

Thank you!

Håkan Hagenrud

More information about the Python-list mailing list