mattrguerra/better-memory-pipelinemainPrivate on GitHub, published here in full

com.example.better-memory.plist

1.4 KB42 lines

scheduling/com.example.better-memory.plist

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
  3. "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
  4. <plist version="1.0">
  5. <dict>
  6. <key>Label</key>
  7. <string>com.example.better-memory</string>
  8. <!-- Runs the nightly wrapper: gate.py, then the optional content gate.
  9. launchd runs with a minimal PATH, so every path here is absolute.
  10. Replace CHANGEME with the macOS username. -->
  11. <key>ProgramArguments</key>
  12. <array>
  13. <string>/bin/bash</string>
  14. <string>/Users/CHANGEME/.local/bin/better-memory/run-nightly.sh</string>
  15. </array>
  16. <!-- Nightly at 20:00. If the Mac is asleep, launchd runs it at next wake.
  17. RunAtLoad is false so loading the job does not fire an immediate run:
  18. test by hand first (docs/INSTALL.md), then let the schedule take over.
  19. Schedule the Cowork distiller AFTER this (20:30) so it reads a fresh
  20. staging directory. -->
  21. <key>StartCalendarInterval</key>
  22. <dict>
  23. <key>Hour</key>
  24. <integer>20</integer>
  25. <key>Minute</key>
  26. <integer>0</integer>
  27. </dict>
  28. <key>RunAtLoad</key>
  29. <false/>
  30. <key>StandardOutPath</key>
  31. <string>/Users/CHANGEME/cowork-staging/better-memory.log</string>
  32. <key>StandardErrorPath</key>
  33. <string>/Users/CHANGEME/cowork-staging/better-memory.err.log</string>
  34. <key>ProcessType</key>
  35. <string>Background</string>
  36. </dict>
  37. </plist>