Skip to content

Instantly share code, notes, and snippets.

@tedchoward
Last active September 2, 2015 15:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tedchoward/d8142f7fe10d134fbc8f to your computer and use it in GitHub Desktop.
Save tedchoward/d8142f7fe10d134fbc8f to your computer and use it in GitHub Desktop.
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