vitor Posted August 5, 2022 Share Posted August 5, 2022 (edited) Usage Remove or readd files and folders from Alfred’s search results via the Universal Actions. Alternatively, search for files and folders via the ignore, unignore, and reignore keywords. ⤓ Install on the Alfred Gallery | Source Edited Tuesday at 09:45 PM by vitor giovanni, 40-02, cands and 1 other 3 1 Link to comment
vitor Posted August 5, 2022 Author Share Posted August 5, 2022 Saving the second post for debugging instructions, if they are ever needed. Link to comment
Peter U Posted September 16, 2022 Share Posted September 16, 2022 This is ridiculously good - thank you so much for creating this workflow! 🙏 I've been waiting forever for a solution to the 'exclude from search' problem, without having to go via Spotlight. vitor 1 Link to comment
vitor Posted October 8, 2022 Author Share Posted October 8, 2022 Updated to 2022.2. Add configurable keywords. Link to comment
gustavopellegrini Posted November 5, 2022 Share Posted November 5, 2022 This work flow is not working for me. Can someone help me? Link to comment
Stephen_C Posted November 5, 2022 Share Posted November 5, 2022 What exactly doesn't work? Please post the output from the debugger you obtain when running the workflow and confirm what macOS and Alfred versions you are using. Stephen Link to comment
gustavopellegrini Posted November 5, 2022 Share Posted November 5, 2022 1 hour ago, Stephen_C said: What exactly doesn't work? Please post the output from the debugger you obtain when running the workflow and confirm what macOS and Alfred versions you are using. Stephen the "teste" folder is not being ignored. Can you help me please?? Link to comment
vitor Posted November 5, 2022 Author Share Posted November 5, 2022 The Automation Task object tells you the problem, the task is missing. Double-click it and install/update. Link to comment
gustavopellegrini Posted November 6, 2022 Share Posted November 6, 2022 16 hours ago, vitor said: The Automation Task object tells you the problem, the task is missing. Double-click it and install/update. Yess, i saw this after taking the screenshot. Now there is no error in the debugger but the "teste" folder still doesn't disappear Link to comment
vitor Posted November 6, 2022 Author Share Posted November 6, 2022 You may have a problem with your Spotlight indexing. First, try rebooting. Try it also on a single file. If that doesn’t work, paste the output of the File Indexing Troubleshooting. Link to comment
gustavopellegrini Posted November 6, 2022 Share Posted November 6, 2022 12 minutes ago, vitor said: You may have a problem with your Spotlight indexing. First, try rebooting. Try it also on a single file. If that doesn’t work, paste the output of the File Indexing Troubleshooting. with a single file it worked.why are the folders not disappearing? Link to comment
vitor Posted November 6, 2022 Author Share Posted November 6, 2022 (edited) They should (and do for me, plus I haven’t gotten other reports like yours). Can’t say why without you rebooting and providing the information requested above. Edited November 6, 2022 by vitor Link to comment
gustavopellegrini Posted November 6, 2022 Share Posted November 6, 2022 7 minutes ago, vitor said: They should (and do for me, plus I haven’t gotten other reports like yours). Can’t say why without you rebooting and providing the information requested above. I drag the "teste" folder in the troubleshooting file index: Starting Diagnostics... File: 'teste' Path: '/Users/gustavopellegrini' ----------------------------------------------------------- Check file cache database... ✅ File cache integrity is ok ----------------------------------------------------------- Check if file is readable... ✅ Alfred has permissions to read this file. Unix Permissions: 493 Underlying Type: NSFileTypeDirectory Extended Attributes: ( "com.apple.metadata:_kMDItemUserTags" ) ----------------------------------------------------------- Check if volume '/' is indexed by macOS... ✅ Indexing is enabled on this drive ----------------------------------------------------------- Check direct file metadata... ✅ Direct metadata available Display Name: teste Other Names: Content Type: public.folder Last Used: 2022-11-06 17:35:32 +0000 ----------------------------------------------------------- Check mdls file metadata... ✅ Metadata contains required items _kMDItemDisplayNameWithExtensions = "teste" kMDItemContentCreationDate = 2022-08-18 07:44:10 +0000 kMDItemContentCreationDate_Ranking = 2022-08-18 00:00:00 +0000 kMDItemContentModificationDate = 2022-11-06 17:35:18 +0000 kMDItemContentModificationDate_Ranking = 2022-11-06 00:00:00 +0000 kMDItemContentType = "public.folder" kMDItemContentTypeTree = ( "public.folder", "public.directory", "public.item" ) kMDItemDateAdded = 2022-08-18 07:44:10 +0000 kMDItemDateAdded_Ranking = 2022-08-18 00:00:00 +0000 kMDItemDisplayName = "teste" kMDItemDocumentIdentifier = 0 kMDItemFSContentChangeDate = 2022-11-06 17:35:18 +0000 kMDItemFSCreationDate = 2022-08-18 07:44:10 +0000 kMDItemFSCreatorCode = "" kMDItemFSFinderFlags = 0 kMDItemFSHasCustomIcon = (null) kMDItemFSInvisible = 0 kMDItemFSIsExtensionHidden = 0 kMDItemFSIsStationery = (null) kMDItemFSLabel = 0 kMDItemFSName = "teste" kMDItemFSNodeCount = 2 kMDItemFSOwnerGroupID = 20 kMDItemFSOwnerUserID = 501 kMDItemFSSize = (null) kMDItemFSTypeCode = "" kMDItemInterestingDate_Ranking = 2022-11-06 00:00:00 +0000 kMDItemKind = "Pasta" kMDItemLastUsedDate = 2022-11-06 17:35:32 +0000 kMDItemLastUsedDate_Ranking = 2022-11-06 00:00:00 +0000 kMDItemUseCount = 12 kMDItemUsedDates = ( "2022-08-18 03:00:00 +0000", "2022-10-13 23:00:00 +0000", "2022-11-04 00:00:00 +0000", "2022-11-05 00:00:00 +0000", "2022-11-06 00:00:00 +0000" ) kMDItemUserTags = ( "alfred:ignore" ) ----------------------------------------------------------- Check file is in search scope... ⚠️ File isn't within Alfred's default search scope Add relevant folder to Alfred's Default Search Scope, or if you're using a workflow, add to the File Filter's scope ----------------------------------------------------------- Check MDQuery file search... ❌ macOS did not return a match for this file in your search scope. Try resetting Alfred's Preferences > Features > Default Results > Search Scope > Reset... to "Reset to Applications and Home" File Search Results for search scope ( ) File Search Results for ~/ ( "[0] /System/Volumes/Data/Users/gustavopellegrini/teste" ) File Search Results for / ( "[0] /System/Volumes/Data/Users/gustavopellegrini/teste" ) ----------------------------------------------------------- ❌ Troubleshooting failed Link to comment
vitor Posted November 7, 2022 Author Share Posted November 7, 2022 You’re still seeing the folder because it’s directly under your home and search optimises that. In real usage that won’t happen, because most folders won’t be at the root of your home. In the off chance that is something you truly need instead of being just a test, you can go to Alfred Preferences → Features → Default Results and Reset the Search Scope to Applications and Home. Link to comment
Casper Posted Tuesday at 05:35 PM Share Posted Tuesday at 05:35 PM I have this error: ERROR: ERROR: Ignore in Alfred[Automation Task] Task Error: Swift/ErrorType.swift:200: Fatal error: Error raised at top level: Error Domain=NSOSStatusErrorDomain Code=-5000 "afpAccessDenied: Insufficient access privileges for operation " UserInfo={NSURLKeysOfUnsetValuesKey=( NSURLTagNamesKey )} Any ideas how to fix it? Link to comment
vitor Posted Tuesday at 05:37 PM Author Share Posted Tuesday at 05:37 PM Welcome @Casper, What are your exact versions of:The Workflow.Alfred.macOS.And what’s the path you’re trying to ignore? Link to comment
Casper Posted Tuesday at 05:47 PM Share Posted Tuesday at 05:47 PM (edited) v2023.1 "Ignore in Alfred" Workflow. Alfred 5.0.6 macOS Ventura 13.2.1. I am trying to exclude one of the app in the Applications folder. Edited Tuesday at 05:48 PM by Casper Link to comment
vitor Posted Tuesday at 05:50 PM Author Share Posted Tuesday at 05:50 PM Just now, Casper said: I am trying to exclude one of the app in the Applications folder. That explains it. See issue #4 on GitHub for the reason and alternative. Link to comment
Casper Posted Tuesday at 07:52 PM Share Posted Tuesday at 07:52 PM I set the tag manually, but that didn't help. I still see the app in Alfred's search results. Link to comment
vitor Posted Tuesday at 09:02 PM Author Share Posted Tuesday at 09:02 PM Try running reload in Alfred to update the app cache. Link to comment
luckman212 Posted Wednesday at 01:01 AM Share Posted Wednesday at 01:01 AM @Casper + @vitor I posted some possibly interesting findings about this over on that github issue #4. 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