launchd – Launchctl plist with StartCalendarInterval not executing

0
41


I’ve a plist which runs a script and if I launch it utilizing StartInterval it runs the script but when I exploit StartCalendarInterval it would not run the script.
Additional particulars are:

  • The plist is beneath and it is positioned in my ~/library/launchagents folder.
  • my check script merely runs ‘date >> /tmp/date.txt’
  • MacOS is Sonoma 14.5
<?xml model="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist model="1.0">
<dict>
  <key>Label</key>
  <string>com.check.copytosynctest_startCal</string>
<key>ProgramArguments</key>
  <array>
    <string>/Customers/check/sync/_automationscripts/copytosynctest.zsh</string>
  </array>
<key>Good</key>
  <integer>1</integer>
<key>StartCalendarInterval</key>
<dict>
  <key>Minute</key>
  <integer>52</integer>
  <key>Hour</key>
  <integer>13</integer>
</dict>
<key>RunAtLoad</key>
  <false/>
<key>StandardErrorPath</key>
  <string>/tmp/copytosynctest1.err</string>
<key>StandardOutPath</key>
  <string>/tmp/copytosynctest1.out</string>
</dict>
</plist>