launchd – Launchctl plist with StartCalendarInterval not executing

[ad_1]

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 situated in my ~/library/launchagents folder.
  • my take a look at 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.take a look at.copytosynctest_startCal</string>
<key>ProgramArguments</key>
  <array>
    <string>/Customers/take a look at/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>

[ad_2]

Leave a Reply

Your email address will not be published. Required fields are marked *