Jump to content

Using tags or comments in search scope?


Recommended Posts

Hi,

 

Apologies in advance if this is obvious, but I was wondering if search scope can be determined by a folder having a tag or a specific spotlight comment.

 

For example: search for file names in all folders with a specific tag. The closest I could find is dynamic file search (which is awesome!) but still the search scope is defined by a folder name, not attribute. Perhaps I can try to edit that? 

 

Thanks!!

Giovanni

Edited by giovanni
Link to comment

I think you'd have to add a Run Script in your workflow that finds the tagged folder and set that as a variable to use in a dynamic file search.
 
For example, this shell command will print the path of the first folder it finds tagged "unwatched": 

mdfind 'kMDItemContentType == "public.folder" && kMDItemUserTags =="unwatched"' | head -n 1

Put that in a Run Script followed by an Args and Vars or JSON Utility to configure the dynamic search.

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...