mattrguerra/transcription-pipelinemainPrivate on GitHub, published here in full

com.example.transcription-pipeline.plist

1.3 KB42 lines

scheduling/com.example.transcription-pipeline.plist

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
  3. <!--
  4. Runs the pipeline whenever something lands in the inbox.
  5. Replace YOU with your macOS user name, copy to ~/Library/LaunchAgents/, then:
  6. launchctl bootstrap gui/$(id -u) ~/Library/LaunchAgents/com.example.transcription-pipeline.plist
  7. -->
  8. <plist version="1.0">
  9. <dict>
  10. <key>Label</key>
  11. <string>com.example.transcription-pipeline</string>
  12. <key>ProgramArguments</key>
  13. <array>
  14. <string>/Users/YOU/transcription-pipeline/scheduling/run-inbox.sh</string>
  15. </array>
  16. <!-- Fire when the inbox folder changes. -->
  17. <key>WatchPaths</key>
  18. <array>
  19. <string>/Users/YOU/Transcription/inbox</string>
  20. </array>
  21. <!-- At most one start every 30 s; a run already in progress holds a lock,
  22. and it keeps looping until the inbox has nothing ready. -->
  23. <key>ThrottleInterval</key>
  24. <integer>30</integer>
  25. <!-- Low priority: transcription is heavy and never urgent. -->
  26. <key>ProcessType</key>
  27. <string>Background</string>
  28. <key>LowPriorityIO</key>
  29. <true/>
  30. <key>Nice</key>
  31. <integer>10</integer>
  32. <key>StandardOutPath</key>
  33. <string>/Users/YOU/Transcription/pipeline.log</string>
  34. <key>StandardErrorPath</key>
  35. <string>/Users/YOU/Transcription/pipeline.log</string>
  36. </dict>
  37. </plist>