2014-02-03 02:30:27 +01:00
|
|
|
#
|
2018-04-17 00:51:57 +02:00
|
|
|
# Displays the macOS download history.
|
2014-02-03 02:30:27 +01:00
|
|
|
#
|
|
|
|
# Authors:
|
|
|
|
# Sorin Ionescu <sorin.ionescu@gmail.com>
|
|
|
|
#
|
|
|
|
|
2017-07-07 01:01:26 +02:00
|
|
|
# function osx-ls-download-history {
|
|
|
|
|
2014-02-03 02:30:27 +01:00
|
|
|
local db
|
|
|
|
for db in ~/Library/Preferences/com.apple.LaunchServices.QuarantineEventsV*; do
|
|
|
|
if grep -q 'LSQuarantineEvent' < <(sqlite3 "$db" .tables); then
|
|
|
|
sqlite3 "$db" 'SELECT LSQuarantineDataURLString FROM LSQuarantineEvent'
|
|
|
|
fi
|
|
|
|
done
|
2017-07-07 01:01:26 +02:00
|
|
|
|
|
|
|
# }
|