Jump to content

Simple folder search not working


Recommended Posts

When I search for files and folders using a [space] first, I do get search results from my folder 'Mijn bibliotheek'

 

But, when I use my Simple Folder Search workflow [f][space] ... , no results are returned...

 

I have had results from this workflow, but for unclear reasons as described here now they are not.

 

See screenshots. Any help is appreciated.

 

20220106 folders are found with space.jpg

20220106 nothing found with simple folder search.jpg

20220106 simple folder search 1.jpg

20220106 simple folder search 2.jpg

Edited by Koen_73
Link to comment

@Koen_73 Could you drag one of the folders within the relevant search scope to the File Troubleshooting tool? Is the metadata complete?

 

Next, try removing the folder file type so that only the search scope is set in your workflow. The "open" keyword (and spacebar) opens up the search to most file types, so if it's found then but not in your workflow while looking at the same scope, could it be that folders aren't correctly being recognised as folders by macOS?

 

You mentioned in the other thread that sometimes results are found and sometimes not (which I assume you meant while using the same keyword and/or workflows). Is this still happening on your Mac? If so, there's something very strange happening to your underlying metadata, and Alfred is just the app showing you it's happening.

Link to comment
Posted (edited)

@Vero I've dragged one of the folders from 'Mijn bibliotheek' to the File Troubleshooting tool. See results below:

 

Starting Diagnostics...

File: 'David Allen - GTD Managing Projects (audio)'
Path: '/Users/koenbunders/Mijn bibliotheek'

-----------------------------------------------------------

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: David Allen - GTD Managing Projects (audio)
 Other Names: 
Content Type: public.folder
   Last Used: 

-----------------------------------------------------------

Check mdls file metadata...

Metadata contains required items

_kMDItemDisplayNameWithExtensions      = "David Allen - GTD Managing Projects (audio)"
kMDItemContentCreationDate             = 2014-08-24 16:07:46 +0000
kMDItemContentCreationDate_Ranking     = 2014-08-24 00:00:00 +0000
kMDItemContentModificationDate         = 2021-12-05 14:10:06 +0000
kMDItemContentModificationDate_Ranking = 2021-12-05 00:00:00 +0000
kMDItemContentType                     = "public.folder"
kMDItemContentTypeTree                 = (
    "public.folder",
    "public.directory",
    "public.item"
)
kMDItemDateAdded                       = 2021-12-28 15:24:56 +0000
kMDItemDateAdded_Ranking               = 2021-12-28 00:00:00 +0000
kMDItemDisplayName                     = "David Allen - GTD Managing Projects (audio)"
kMDItemDocumentIdentifier              = 0
kMDItemFSContentChangeDate             = 2021-12-05 14:10:06 +0000
kMDItemFSCreationDate                  = 2014-08-24 16:07:46 +0000
kMDItemFSCreatorCode                   = ""
kMDItemFSFinderFlags                   = 0
kMDItemFSHasCustomIcon                 = 0
kMDItemFSInvisible                     = 0
kMDItemFSIsExtensionHidden             = 0
kMDItemFSIsStationery                  = 0
kMDItemFSLabel                         = 0
kMDItemFSName                          = "David Allen - GTD Managing Projects (audio)"
kMDItemFSNodeCount                     = 13
kMDItemFSOwnerGroupID                  = 20
kMDItemFSOwnerUserID                   = 501
kMDItemFSSize                          = 13
kMDItemFSTypeCode                      = ""
kMDItemInterestingDate_Ranking         = 2021-12-05 00:00:00 +0000
kMDItemKind                            = "Folder"

-----------------------------------------------------------

Check file is in search scope...

File exists within Alfred's default search scope

-----------------------------------------------------------

Troubleshooting passed
 

 

You also mentioned:

 

Quote

Next, try removing the folder file type so that only the search scope is set in your workflow. The "open" keyword (and spacebar) opens up the search to most file types, so if it's found then but not in your workflow while looking at the same scope, could it be that folders aren't correctly being recognised as folders by macOS?

 

I'm not sure what you mean. Could you mention the steps that I should follow to 'try removing the folder file type so that only the search scope is set in your workflow'? @Vero?

 

Quote

You mentioned in the other thread that sometimes results are found and sometimes not (which I assume you meant while using the same keyword and/or workflows). Is this still happening on your Mac? If so, there's something very strange happening to your underlying metadata, and Alfred is just the app showing you it's happening.

 

Yes, this is still happening. I think it has to do with mounting / unmounting external drives, but I haven't been able to reproduce yet.

Edited by Koen_73
Link to comment

 

Hoping to get a response to:

 

Quote

I'm not sure what you mean. Could you mention the steps that I should follow to 'try removing the folder file type so that only the search scope is set in your workflow'? @Vero?

 

And regarding the above and what @Vero mentioned below...

 

Quote

You mentioned in the other thread that sometimes results are found and sometimes not (which I assume you meant while using the same keyword and/or workflows). Is this still happening on your Mac? If so, there's something very strange happening to your underlying metadata, and Alfred is just the app showing you it's happening.

 

... I'd like to point out that Spotlight is finding these folders (and files)! So it must be Alfred, I guess?

Link to comment
1 hour ago, Koen_73 said:

... I'd like to point out that Spotlight is finding these folders (and files)! So it must be Alfred, I guess?

 

No, this issue will be caused by using the Migration Assistant, which you confirmed in the previous thread you used to transfer your setup from your previous Mac. Even though not all files were copied from another Mac, the underlying file system structure likely assumes that your user directory setup is identical to the previous Mac when it isn't. This is where the bug in macOS Monterey lies, and all we can do is offer workarounds to the issue caused by Apple.

 

Have you tried following Andrew's suggestion here? Again, it's only a workaround, and the real resolution can only come through either 1. a reinstall of your Mac, or 2. Apple fixing the issue with Migration Assistant retrospectively for users who've already used it.

 

 

Cheers,
Vero

Link to comment
Posted (edited)

Thanks @Vero. I thought I already completely reinstalled my Mac after I learned the Migration Assistent caused these issues. These are the steps I took:

 

1. Open System Preferences

2. Erase All Content And Settings (from the menu)

 

When the problem kept occurring, I reinstalled MacOS via these steps: https://support.apple.com/en-us/HT204904

 

Did I do something wrong? Please help.

 

Quote

Have you tried following Andrew's suggestion here?

Yes, I have. No solution.

Edited by Koen_73
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...