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.