This issue has been reported multiple times but none of the solutions mentioned in those reports worked for me.
Alfred version: Alfred 4.5 [1253]
macOS version: macOS Big Sur Version 11.4
Problem:
No Application coming up in Default Results of Alfred. Spotlight is working fine.
I have attached the screenshot and troubleshooting output for the Safari app but this is the same for almost all of my Applications.
Troubleshooting output:
Starting Diagnostics...
File: 'Safari.app'
Path: '/Applications'
-----------------------------------------------------------
Check file cache database...
✅ File cache integrity is ok
-----------------------------------------------------------
Check if file is readable...
✅ Alfred has permissions to read this file.
-----------------------------------------------------------
Check if volume '/' is indexed by macOS...
✅ Indexing is enabled on this drive
-----------------------------------------------------------
Check direct file metadata...
✅ Direct metadata available
Display Name: Safari
Other Names: Safari.app
Content Type: com.apple.application-bundle
Last Used: 2021-08-07 11:49:32 +0000
-----------------------------------------------------------
Check mdls file metadata...
✅ Metadata contains required items
_kMDItemDisplayNameWithExtensions = "Safari.app"
kMDItemAlternateNames = (
"Safari.app"
)
kMDItemAppStoreCategory = "Productivity"
kMDItemAppStoreCategoryType = "public.app-category.productivity"
kMDItemAppStoreIsAppleSigned = 1
kMDItemCFBundleIdentifier = "com.apple.Safari"
kMDItemContentCreationDate = 2020-01-01 08:00:00 +0000
kMDItemContentCreationDate_Ranking = 2020-01-01 00:00:00 +0000
kMDItemContentModificationDate = 2020-01-01 08:00:00 +0000
kMDItemContentModificationDate_Ranking = 2020-01-01 00:00:00 +0000
kMDItemContentType = "com.apple.application-bundle"
kMDItemContentTypeTree = (
"com.apple.application-bundle",
"com.apple.application",
"public.executable",
"com.apple.localizable-name-bundle",
"com.apple.bundle",
"public.directory",
"public.item",
"com.apple.package"
)
kMDItemDateAdded = 2021-07-20 04:19:25 +0000
kMDItemDateAdded_Ranking = 2021-07-20 00:00:00 +0000
kMDItemDisplayName = "Safari"
kMDItemDocumentIdentifier = 0
kMDItemExecutableArchitectures = (
arm64,
"x86_64"
)
kMDItemFSContentChangeDate = 2020-01-01 08:00:00 +0000
kMDItemFSCreationDate = 2020-01-01 08:00:00 +0000
kMDItemFSCreatorCode = ""
kMDItemFSFinderFlags = 0
kMDItemFSHasCustomIcon = 0
kMDItemFSInvisible = 0
kMDItemFSIsExtensionHidden = 0
kMDItemFSIsStationery = 0
kMDItemFSLabel = 0
kMDItemFSName = "Safari.app"
kMDItemFSNodeCount = 1
kMDItemFSOwnerGroupID = 0
kMDItemFSOwnerUserID = 0
kMDItemFSSize = 1
kMDItemFSTypeCode = ""
kMDItemInterestingDate_Ranking = 2021-08-07 00:00:00 +0000
kMDItemKind = "Application"
kMDItemLastUsedDate = 2021-08-07 11:49:32 +0000
kMDItemLastUsedDate_Ranking = 2021-08-07 00:00:00 +0000
kMDItemLogicalSize = 25561189
kMDItemPhysicalSize = 24764416
kMDItemUseCount = 1
kMDItemUsedDates = (
"2021-08-06 18:30:00 +0000"
)
kMDItemVersion = "14.1.1"
-----------------------------------------------------------
Check file is in search scope...
✅ File exists within Alfred's default search scope
-----------------------------------------------------------
✅ Troubleshooting passed