1951FDG
10/16/2013 - 11:31 AM

Use mdfind to find applications that meet certain criteria

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"