giovanni Posted July 8, 2016 Share Posted July 8, 2016 (edited) 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 July 8, 2016 by giovanni Link to comment
deanishe Posted July 8, 2016 Share Posted July 8, 2016 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. giovanni 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