Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Bash functions to dump or delete events from the LaunchServices QuarantineEvents database
#!/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