← back to Sample Followup Sweep
launchd/com.steve.sample-followup-poll.plist
52 lines
<?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">
<!--
Daily reply poller for the sample follow-up loop.
Runs `node scripts/poll-replies.mjs` at 8:05 AM PT:
• records vendor replies (info@) -> data/replies.json (for Priority Memo Notes)
• rebuilds data/resend-queue.json (>=3 BUSINESS days, weekends excluded, no reply)
Read-only vs mail; never sends. The resend stays a one-click on the console.
Install (Steve runs — scheduled-job install is gated):
cp ~/Projects/sample-followup-sweep/launchd/com.steve.sample-followup-poll.plist ~/Library/LaunchAgents/
launchctl bootstrap gui/$(id -u) ~/Library/LaunchAgents/com.steve.sample-followup-poll.plist
launchctl kickstart -k gui/$(id -u)/com.steve.sample-followup-poll # optional: run once now
Uninstall:
launchctl bootout gui/$(id -u)/com.steve.sample-followup-poll
-->
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.steve.sample-followup-poll</string>
<key>ProgramArguments</key>
<array>
<string>/opt/homebrew/bin/node</string>
<string>/Users/macstudio3/Projects/sample-followup-sweep/scripts/poll-replies.mjs</string>
</array>
<key>WorkingDirectory</key>
<string>/Users/macstudio3/Projects/sample-followup-sweep</string>
<key>EnvironmentVariables</key>
<dict>
<key>PATH</key>
<string>/opt/homebrew/bin:/usr/bin:/bin:/usr/sbin:/sbin</string>
</dict>
<key>StartCalendarInterval</key>
<dict>
<key>Hour</key><integer>8</integer>
<key>Minute</key><integer>5</integer>
</dict>
<key>RunAtLoad</key>
<false/>
<key>StandardOutPath</key>
<string>/Users/macstudio3/Projects/sample-followup-sweep/out/poll.log</string>
<key>StandardErrorPath</key>
<string>/Users/macstudio3/Projects/sample-followup-sweep/out/poll.log</string>
</dict>
</plist>