Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 python 开发一个应用程序,需要在系统关闭、重新启动、休眠等时收到通知。我该怎么做?
请对此有所了解。Objective C 或 applescript 中的任何提示都足够好。
提前致谢。
好吧,您可以使用默认值来挂钩脚本以登录和注销,这样可能有助于挂钩关闭、重新启动等。如果失败,请查看launchd。