← back to Marketing Command Center

deploy/com.steve.dw-follow-counts.plist

40 lines

<?xml version="1.0" encoding="UTF-8"?>
<!--
  STAGED — NOT loaded. Once-daily Followers/Following snapshot for the DW Marketing
  Command Center. Captures each DW IG account's followers_count + follows_count via
  Norma's instagram-agent (:9810) and persists one row/day so growth charts.

  Local install (Mac2), when Steve approves:
    cp deploy/com.steve.dw-follow-counts.plist ~/Library/LaunchAgents/
    launchctl bootstrap gui/$(id -u) ~/Library/LaunchAgents/com.steve.dw-follow-counts.plist
  Verify:  launchctl list | grep dw-follow-counts
  Run now: launchctl kickstart gui/$(id -u)/com.steve.dw-follow-counts

  Runs daily at 06:05 local (RunAtLoad so a missed forced-sleep day still fires on
  next login — see MEMORY: keepawake does not block power-button sleep).
-->
<plist version="1.0">
<dict>
  <key>Label</key>
  <string>com.steve.dw-follow-counts</string>
  <key>ProgramArguments</key>
  <array>
    <string>/opt/homebrew/bin/node</string>
    <string>/Users/macstudio3/Projects/marketing-command-center/scripts/follow-counts-snapshot.js</string>
  </array>
  <key>WorkingDirectory</key>
  <string>/Users/macstudio3/Projects/marketing-command-center</string>
  <key>RunAtLoad</key>
  <true/>
  <key>StartCalendarInterval</key>
  <dict>
    <key>Hour</key><integer>6</integer>
    <key>Minute</key><integer>5</integer>
  </dict>
  <key>StandardOutPath</key>
  <string>/Users/macstudio3/Projects/marketing-command-center/data/follow-counts-snapshot.out</string>
  <key>StandardErrorPath</key>
  <string>/Users/macstudio3/Projects/marketing-command-center/data/follow-counts-snapshot.err</string>
</dict>
</plist>