Last active
December 11, 2015 07:48
-
-
Save CocoaBeans/4568811 to your computer and use it in GitHub Desktop.
Bash functions to dump or delete events from the LaunchServices QuarantineEvents database
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
DumpQuarantineEventsURLs() | |
{ | |
sqlite3 ~/Library/Preferences/com.apple.LaunchServices.QuarantineEventsV* 'select LSQuarantineDataURLString from LSQuarantineEvent' | awk '/.+/ {print}' | sort | |
} | |
DumpQuarantineEvents() | |
{ | |
sqlite3 ~/Library/Preferences/com.apple.LaunchServices.QuarantineEventsV* 'select * from LSQuarantineEvent' | awk '/.+/ {print}' | sort | |
} | |
DeleteQuarantineEvents() | |
{ | |
sqlite3 ~/Library/Preferences/com.apple.LaunchServices.QuarantineEventsV* 'delete from LSQuarantineEvent' | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment