0

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.

nur
  • 161
  • 2
  • 11

1 Answers1

0

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
  • 87,131
  • 49
  • 199
  • 315