Skip to content

Instantly share code, notes, and snippets.

@stisti
Last active December 23, 2015 02:09
Show Gist options
  • Save stisti/6564729 to your computer and use it in GitHub Desktop.
Save stisti/6564729 to your computer and use it in GitHub Desktop.
Launch agent that notifies when XProtect updates. Drop this into ~/Library/LaunchAgents and log out and back in or run: launchctl load ~/Library/LaunchAgents/xprotect_watch.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>Label</key>
<string>fi.iki.sti.xprotect_watch</string>
<key>ProgramArguments</key>
<array>
<string>/usr/local/bin/growlnotify</string>
<string>--title</string>
<string>XProtect Update</string>
<string>--message</string>
<string>XProtect.plist was updated</string>
<string>--sticky</string>
</array>
<key>WatchPaths</key>
<array>
<string>/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/XProtect.plist</string>
</array>
</dict>
</plist>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment