Skip to content

Instantly share code, notes, and snippets.

@pkutzner
Created February 13, 2014 19:15
Show Gist options
  • Save pkutzner/8981838 to your computer and use it in GitHub Desktop.
Save pkutzner/8981838 to your computer and use it in GitHub Desktop.
LaunchAgent to run privacy.sh when Safari quits.
<?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>com.user.clearsafari</string>
<key>ProgramArguments</key>
<array>
<string>/bin/bash</string>
<string>/Users/USER/scripts/privacy.sh</string>
</array>
<key>WatchPaths</key>
<array>
<string>/Users/USER/Library/Preferences/com.apple.Safari.plist</string>
</array>
</dict>
</plist>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment