For some specific reasons, I'm trying/testing out creating a Launch Agent to run when users login. The agent has one job--to run a script stored locally on machines.
It is not working I wrote it based on examples and guides for plist format I found online. I've seen some GUI tools for creating and editing plists but don't know which, if any, are good.
Here is the content of the plist
<?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>com.dockset.app</string>
<key>ProgramArguments</key>
<array>
<string>/Library/Scripts/K-3Dock.sh</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>StandardErrorPath</key>
<string>/tmp/Dockset1.err</string>
<key>StandardOutPath</key>
<string>/tmp/Dockset1.out</string>
</dict>
</plist>
I've checked to make sure the permissions match the other plists stored in /Library/LaunchAgents
I've made sure the permissions on it are 600 and that it's executable.
The plist is named: com.dockset.test.plist
I haven't tried making the name of the plist match the label, not sure if that's the issue though.
I've run plutil on it and it has come up ok.
Any guidance would be greatly appreciated.