launchd error
I can't figure out why this launchd fails.
The process itself isn't important, I'm just curious why it fails on macOS Monterey (used to run on High Sierra)
The launchd moves file from the Downloads Folder to the Desktop:
<?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>EnvironmentVariables</key>
<dict>
<key>PATH</key>
<string>/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin</string>
</dict>
<key>Label</key>
<string>com.tonyt.movetodesktop</string>
<key>ProgramArguments</key>
<array>
<string>/bin/mv</string>
<string>/Users/Tony/Downloads/*</string>
<string>/Users/Tony/Deskop</string>
</array>
<key>RunAtLoad</key>
<false/>
<key>StartCalendarInterval</key>
<array>
<dict>
<key>Hour</key>
<integer>18</integer>
<key>Minute</key>
<integer>0</integer>
</dict>
</array>
</dict>
</plist>
I used Lingon to create the plist, and testing in Lingon gives the following error (there are files in Downloads):