Hi Andrew,
A couple updates - I tried navigating directly to the path in order to run this script in Alfred, and after that it seemed to be given a special place in Alfred's index (maybe files accessed in Alfred are included in the index by default, even if they aren't in a search path?)
So to do what you asked, I dragged a different script from that folder to the desktop and am pasting the troubleshooting result below:
Starting Diagnostics...
File: 'Mail-To-Things-Basic.scpt'
Path: '/Users/jafish/Desktop'
-----------------------------------------------------------
Check file cache database...
✅ File cache integrity is ok
-----------------------------------------------------------
Check if file is readable...
✅ Alfred has permissions to read this file.
-----------------------------------------------------------
Check file is in search scope...
✅ File exists within Alfred's default search scope
-----------------------------------------------------------
Check if volume '/' is indexed by macOS...
✅ Indexing is enabled on this drive
-----------------------------------------------------------
Check direct file metadata...
✅ Direct metadata available
Display Name: Mail-To-Things-Basic.scpt
Other Names:
Content Type: com.apple.applescript.script
Last Used:
-----------------------------------------------------------
Check mdls file metadata...
✅ Metadata contains required items
_kMDItemDisplayNameWithExtensions = "Mail-To-Things-Basic.scpt"
kMDItemContentCreationDate = 2015-11-16 16:59:22 +0000
kMDItemContentCreationDate_Ranking = 2015-11-16 00:00:00 +0000
kMDItemContentModificationDate = 2015-11-16 16:59:22 +0000
kMDItemContentModificationDate_Ranking = 2015-11-16 00:00:00 +0000
kMDItemContentType = "com.apple.applescript.script"
kMDItemContentTypeTree = (
"com.apple.applescript.script",
"public.data",
"public.item",
"public.script",
"public.source-code",
"public.plain-text",
"public.text",
"public.content"
)
kMDItemDateAdded = 2020-09-18 01:58:04 +0000
kMDItemDateAdded_Ranking = 2020-09-18 00:00:00 +0000
kMDItemDisplayName = "Mail-To-Things-Basic.scpt"
kMDItemDocumentIdentifier = 0
kMDItemFSContentChangeDate = 2015-11-16 16:59:22 +0000
kMDItemFSCreationDate = 2015-11-16 16:59:22 +0000
kMDItemFSCreatorCode = ""
kMDItemFSFinderFlags = 0
kMDItemFSHasCustomIcon = (null)
kMDItemFSInvisible = 0
kMDItemFSIsExtensionHidden = 0
kMDItemFSIsStationery = (null)
kMDItemFSLabel = 0
kMDItemFSName = "Mail-To-Things-Basic.scpt"
kMDItemFSNodeCount = (null)
kMDItemFSOwnerGroupID = 20
kMDItemFSOwnerUserID = 501
kMDItemFSSize = 6754
kMDItemFSTypeCode = ""
kMDItemInterestingDate_Ranking = 2015-11-16 00:00:00 +0000
kMDItemKind = "Script"
kMDItemLogicalSize = 6754
kMDItemPhysicalSize = 8192
-----------------------------------------------------------
✅ Troubleshooting passed