launchd.plist generator
![]()
launchd.plist generator
#### Installation
``bash`
$ [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
KEY: VALUE
CUSTOM_KEY@type: VALUE # custom key. @type required - array/bool/integer/string
`
#### Scripts usage
`bash`
usage: launchd-generator script ...
#### Examples
agent.sh`bash`
#!/usr/bin/env bashStartInterval: 10
agent.sh.plist`xml`
agent.py`python`
#!/usr/bin/env python
"""
WatchPaths: ~/Desktop
WatchPaths: ~/Downloads
"""
agent.py.plist`xml`
`bash`
$ cd ~/Library/LaunchAgents && find . \( -name ".sh" -o -name ".py" \) | xargs launchd-generator
#### Related projects
+ classifiers-generator - python classifiers generator
+ commands-generator - shell commands generator
+ launchd-generator - launchd.plist generator
+ readme-generator - README.md generator
+ setupcfg-generator - setup.cfg generator
+ travis-generator - .travis.yml` generator
#### Links
+ launchd.plist(5)