launchd.plist generator
Project description
Install
$ [sudo] pip install launchd-generator
Features
- generate launchd.plist from ANY script
- define launchd.plist keys in script comments
How it works
script.py
-> script.py.plist
, script.sh
-> script.sh.plist
#!/usr/bin/env <interpreter>
KEY: VALUE
CLI
usage: launchd-generator script ...
Examples
agent.sh
#!/usr/bin/env bash
# StartInterval: 10
agent.sh.plist
<key>ProgramArguments</key>
<array>
<string>/path/to/agent.sh</string>
<string>/path/to/agent.sh.plist</string>
</array>
<key>StartInterval</key>
<integer>10</integer>
agent.py
#!/usr/bin/env python
"""
WatchPaths: ~/Desktop
WatchPaths: ~/Downloads
"""
agent.py.plist
<key>ProgramArguments</key>
<array>
<string>/path/to/agent.py</string>
<string>/path/to/agent.py.plist</string>
</array>
<key>WatchPaths</key>
<array>
<string>/Users/username/Desktop</string>
<string>/Users/username/Downloads</string>
</array>
$ cd ~/Library/LaunchAgents && find . \( -name "*.sh" -o -name "*.py" \) | xargs launchd-generator
Links
readme-md - README.md generator
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for launchd-generator-2019.2.27.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5327c0811a8a1971460858c591aa896879a2119e904794d4072db08be97b3fd9 |
|
MD5 | 43bf36d478739fe27675540831d9d8fc |
|
BLAKE2b-256 | 840f5c2ae3de79edfbe2651e603a480674d3ce0eb342f3be43d2dedc178e52f4 |
Close
Hashes for launchd_generator-2019.2.27-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ffe3230e7fa95b6ed44b54458d53fd07311388463d034e70744199e8b13aec25 |
|
MD5 | b3014afe50c10ee7b2fec593326b10cd |
|
BLAKE2b-256 | 9213d436a52a8b3023011c79506f5efcd10b7fa115e2bc263f6a697bd64624be |