views:

200

answers:

1

i am developing an application using python that requires to be notified when the system is shutting down, rebooting, hibernating etc. how can I do that?

Please shed some light on this. any hints in Objective C or applescript will be good enough.

Thanks in advance.

A: 

Well, you can use defaults to hook scripts to login and logout, so that might be able to help with hooking shutdown, reboot, etc. Failing that, check out launchd.

rampion
Thanks that was pretty helpful.
nur