Skip to content

Instantly share code, notes, and snippets.

@tedchoward
Last active Sep 2, 2015
Embed
What would you like to do?
launchd script to keep OPML editor running

Copy the plist to ~/Library/LaunchAgents then run

launchctl load ~/Library/LaunchAgents/com.scripting.opml.plist

This plist assumes that OPML Editor is installed in /Applications/OPML. If you have it installed in a different location, you will need to modify line 13 of the plist.

The OPML Editor should launch. It will re-launch within 10 seconds if it quits for whatever reason.

killall OPML

To quit OPML editor (and keep it that way), use launchd.

launchctl unload ~/Library/LaunchAgents/com.scripting.opml.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple/DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>KeepAlive</key>
<true />
<key>ThrottleInterval</key>
<integer>10</integer>
<key>Label</key>
<string>com.scripting.OPML</string>
<key>ProgramArguments</key>
<array>
<string>/Applications/OPML/OPML.app/Contents/MacOS/OPML</string>
</array>
</dict>
</plist>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment