Skip to content

Instantly share code, notes, and snippets.

@1951FDG
Created October 16, 2013 11:31
Show Gist options
  • Save 1951FDG/ffe2f7c005f7193fb8ff to your computer and use it in GitHub Desktop.
Save 1951FDG/ffe2f7c005f7193fb8ff to your computer and use it in GitHub Desktop.
Use mdfind to find applications that meet certain criteria
mdfind -onlyin /Applications -onlyin /Developer/Applications "kMDItemContentType == 'com.apple.application-bundle' && kMDItemCFBundleIdentifier == 'com.apple.*'" | while read filename; do basename "$filename"; done
mdfind "kMDItemAppStoreHasReceipt=1"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment