diff options
| author | Teddy Wing | 2018-02-04 06:58:58 +0100 |
|---|---|---|
| committer | Teddy Wing | 2018-02-04 07:20:07 +0100 |
| commit | 4f253d83f4b0edc264e134828e4d35232544b497 (patch) | |
| tree | 4e73e3bf0aae11ff6d58a650c9cd4dbf698a71d3 | |
| parent | 82cfabefbc1916cf881b6e6f7b2fa819a798eeee (diff) | |
| download | harvester-submit-week-for-approval-4f253d83f4b0edc264e134828e4d35232544b497.tar.bz2 | |
Add launchd plist
This will run the program every Monday and Friday evening.
The plist needs to be modified to work in your environment and with your
configuration.
| -rw-r--r-- | com.teddywing.harvester-submit-week-for-approval.plist | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/com.teddywing.harvester-submit-week-for-approval.plist b/com.teddywing.harvester-submit-week-for-approval.plist new file mode 100644 index 0000000..bb8a7e1 --- /dev/null +++ b/com.teddywing.harvester-submit-week-for-approval.plist @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> +<plist version="1.0"> +<dict> + <key>Label</key> + <string>com.teddywing.harvester-submit-week-for-approval</string> + <key>ProgramArguments</key> + <array> + <string>/usr/local/bin/python3</string> + <string>/absolute/path/to/harvester_submit_week_for_approval.py</string> + <string>--email</string> + <string>name@example.com</string> + <string>--password-command</string> + <string>security find-internet-password -a 'name@example.com' -s 'acme.harvestapp.com' -w</string> + <string>--subdomain</string> + <string>acme</string> + <string>--account-id</string> + <string>000000</string> + <string>--api-token</string> + <string>TOKEN</string> + </array> + <key>StandardErrorPath</key> + <string>/tmp/harvester_submit_week_for_approval.log</string> + <key>StartCalendarInterval</key> + <array> + <dict> + <key>Weekday</key> + <integer>1</integer> + <key>Hour</key> + <integer>17</integer> + <key>Minute</key> + <integer>58</integer> + </dict> + <dict> + <key>Weekday</key> + <integer>5</integer> + <key>Hour</key> + <integer>17</integer> + <key>Minute</key> + <integer>58</integer> + </dict> + </array> +</dict> +</plist> |
