Skip to content

Instantly share code, notes, and snippets.

@ttscoff
Created September 23, 2021 13:50
Show Gist options
  • Save ttscoff/821cb469a9daa3ba7d5929f1c4074619 to your computer and use it in GitHub Desktop.
Save ttscoff/821cb469a9daa3ba7d5929f1c4074619 to your computer and use it in GitHub Desktop.
mdfind -onlyin /Applications '(((kMDItemContentTypeTree == "com.apple.application"cd && (kMDItemUsedDates >= "$time.today(-30d)" && kMDItemUsedDates < "$time.today(+1d)"))))' 2> /dev/null | grep -vE '/(Dock|Finder|Music|Messages|System Preferences|Activity Monitor|Calendar).app' | awk -F/ '{sub(/\.app$/, ""); print "- ["$NF"](!s)"}' | awk '!x[$0]++'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment