如何创建只运行一次的启动代理?

bra*_*une 5 macos launchd

由于launchdplist 格式中没有“Year”参数,如何创建一个只运行一次而不是一年一次的代理?

Tam*_*gel 2

LaunchOnlyOnce为此使用密钥:

<key>LaunchOnlyOnce</key>
<true/>
Run Code Online (Sandbox Code Playgroud)

如果系统未重新启动,这将仅启动代理一次。