mariano@host LaunchAgents % plutil local.test.plist
local.test.plist: OK
Mais alors :
mariano@host LaunchAgents % sudo launchctl load local.test.plist
Password:
/Users/mariano/Library/LaunchAgents/local.test.plist: Invalid property list
Fichier en question :
<?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>Label</key>
<string>local.test.plist</string>
<key>ProgramArguments</key>
<array>
<string>/bin/echo</string>
<key>"Hello world"</key>
</array>
<key>StartInterval</key>
<integer>1</integer>
</dict>
</plist>