nikivi Posted November 30, 2020 Share Posted November 30, 2020 (edited) Get this when trying to search contacts: I reset Spotlight index and had it finish doing the indexing. Not sure what else I need to do. My situation is that my macOS got broken on latest Big Sur update. Had to restore from backup. And now I get this. Might be included to this but my file filter searches are also broke now. This file in ~/Dropbox/Write/knowledge: Is no longer being found using my file filter workflow that searches this folder for markdown files: I no longer have the Alfred Meta viewer app but I did drop the file again into the File Types section and it is recognized by Alfred as .markdown just no results are returned for any markdown file using the file filter. Edited November 30, 2020 by nikivi Link to comment
Andrew Posted November 30, 2020 Share Posted November 30, 2020 [Original reply from when this was posted as a Bug Report] @nikivi If you've been messing with your metadata and it's gone from working to not working, without any changes in Alfred, there is unlikely to be a bug in Alfred. For due-diligence, I have taken the time to create a workflow to reproduce the bug you've reported, and everything is working as expected in macOS 11.0.1. Contacts are indeed parsed correctly. nikivi 1 Link to comment
nikivi Posted November 30, 2020 Author Share Posted November 30, 2020 (edited) Okay I might be the unluckiest person or macOS hates me as I always get weird file system issues but indeed the file types of those files are not markdown but `dyn.ah62d4rv4ge8043a` as the metadata viewer showed: Might be something to look into though as when I did drop this file into here: The `dyn..` stuff wasn't added. I'd consider that a bug as the metadata viewer did recognize the file type as `dyn..`. This doesn't solve the contacts search issue though. Not sure what even went wrong there. File type seems ok: Permissions are granted: 😐 Edited November 30, 2020 by nikivi Link to comment
Andrew Posted November 30, 2020 Share Posted November 30, 2020 8 minutes ago, nikivi said: The `dyn..` stuff wasn't added. I'd consider that a bug as the metadata viewer did recognize the file type as `dyn..`. What would you consider a bug? I don't see anything wrong in the screenshots you've posted. Link to comment
nikivi Posted November 30, 2020 Author Share Posted November 30, 2020 Only one contact is being formatted correctly. Perhaps because I inspected it? Also despite showing system files, not all contacts are being found again. Previously that option fixed my issue of Alfred not returning all contacts. Link to comment
nikivi Posted November 30, 2020 Author Share Posted November 30, 2020 Just now, Andrew said: What would you consider a bug? This line I had to add manually by inspecting file with the Viewer then copying it from it from there. I'd expect Alfred to fill in this line for me when I dropped `karabiner.md` file into this table view but nothing happened for me. That's why I assumed the file type was either `com.unknown.md` or `net.daring` but it was neither. Link to comment
Andrew Posted November 30, 2020 Share Posted November 30, 2020 @nikivi Alfred is given the type to add by macOS, he doesn't make it up himself. Whatever type is given to Alfred by macOS is added to that File Types: field, so if your metadata is broken, and macOS is giving Alfred nothing, or something bogus, Alfred has no way of determining that this is correct or incorrect. nikivi 1 Link to comment
nikivi Posted November 30, 2020 Author Share Posted November 30, 2020 I see, thank you @Andrew Going to drop the only thing that worked for me so far, maybe it might give an idea of what's going on. Every time I drop a contact from here (where all contact metadata is kept): Into the Alfred Meta Viewer to inspect the contact. After that the contact starts to be found again. Example, not found: After inspecting contact with Alfred Metadata Tool and waiting ~ 5 seconds, the contact will be found and indexed correctly: Makes me thing this is some permission thing between Alfred and the contacts themselves and somehow Metadata Viewer lets Alfred access the files correctly. Not sure. Link to comment
nikivi Posted November 30, 2020 Author Share Posted November 30, 2020 I tried to select all contacts (I have 856) and drop them all at once into the Metadata Tool but it unsurprisingly only opens one contact so it didn't work. Don't want to go through the process of doing the above for each one of the 856 contacts so any solution to this would be very welcome. Link to comment
deanishe Posted November 30, 2020 Share Posted November 30, 2020 2 hours ago, nikivi said: The `dyn..` stuff wasn't added. I'd consider that a bug as the metadata viewer did recognize the file type as `dyn..`. But it’s already in the list…? Link to comment
nikivi Posted November 30, 2020 Author Share Posted November 30, 2020 2 minutes ago, deanishe said: But it’s already in the list…? I added it there manually. Link to comment
Andrew Posted November 30, 2020 Share Posted November 30, 2020 I'm moving this out of the bug forum Link to comment
nikivi Posted December 1, 2020 Author Share Posted December 1, 2020 Would it be possible to open source Alfred Metadata Tool? I am very curious to know what actually causes the act of inspecting a contact to be indexed properly by Alfred. So I can perhaps write a script to run it on all the 800+ contacts so all are indexed. I know this is a hacky approach but I don't have time to reinstall macOS from scratch (will do it when I get M2 mac machine). If it's not possible, I guess I can live with it until then. Thanks. Link to comment
Andrew Posted December 1, 2020 Share Posted December 1, 2020 @nikivi the metadata tool is no longer used, it was superseded by the built-in file troubleshooting within Alfred's help preferences. The metadata tool itself has no intrinsic link to Alfred, it's a completely independent app, and I suspect just the act of opening the file is causing macOS to update the last used metadata flag, which is fixing the single metadata record in your broken index. You might find that creating a script to touch, open, or mdls each of those files will have exactly the same effect. nikivi 1 Link to comment
nikivi Posted December 1, 2020 Author Share Posted December 1, 2020 I tried both open & mdls: And it didn't work. Alfred troubleshooting thing always works all the time. Not sure what you mean with touch command, I guess `cat` contact content to clipboard. Then create a new .abcdp file with the clipped content. I have a feeling that maybe it's Alfred checking whether the contact is in default search scope may do something too. Thanks for the help @Andrew. Just wanted to note this in case someone else has similar issues and finds this thread as those solutions didn't work for me. Link to comment
Andrew Posted December 1, 2020 Share Posted December 1, 2020 @nikivi touch will update the last used timestamp: https://ss64.com/osx/touch.html To get the built-in troubleshooting to work, temporarily add the AddressBook/Sources/ folder to your default search scope. Link to comment
nikivi Posted January 5, 2021 Author Share Posted January 5, 2021 So waiting a month with it broken was worth it. macOS fixed it on its own 🎊 Andrew 1 Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now