Tag + Subfolder

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

Tag + Subfolder Tue May 24, 2016 6:37 pm • by snoozy
Hi all,
I'm trying to create a simple workflow that apply a tag to all the children of a folder, if a special tag is present at the root.
Basically I want a tag to propagate to all it's children, but somehow I cannot make it work.

Any help would be greatly appreciate :)
snoozy
 
Posts: 3
Joined: Tue May 24, 2016 5:52 pm

Re: Tag + Subfolder Wed May 25, 2016 10:38 am • by Mr_Noodle
Is it only one particular tag? If so, you can hardcode it and propagate it this way:
Code: Select all
If (all) match
   If (all) match for (the enclosing folder)
      Tags contain tag <<special tag>>
Do
   Add tag <<special tag>>

To create the nested condition, hold down option while clicking the + button to create a new condition. Also, you'll need another rule to tell Hazel to go into subfolders. See the sticky article on that.
Mr_Noodle
Site Admin
 
Posts: 11872
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Tag + Subfolder Wed May 25, 2016 3:10 pm • by snoozy
Thank you for your help,
Here is what I have so far:
Image

But I cannot make it work with. Here is what I'm after:
- To monitor a root folder (CLIENTS)
- Have the tag propagate to all the children if present somewhere in the hierarchy,
- OR if this is to complicated, only evaluate the first child of client (Project to Sync) and propagate the tag
Image

Thank you again for any help :)
snoozy
 
Posts: 3
Joined: Tue May 24, 2016 5:52 pm

Re: Tag + Subfolder Wed May 25, 2016 4:43 pm • by Mr_Noodle
First off, the subfolder rule should be totally separate from the rule tagging the files. The rule from the sticky article should stand on its own.

The second thing is in the nested condition, notice the extra popup at the end? You want to set that to "the enclosing folder". When you do that, the rule is basically saying, match the file if the parent folder has a tag with the text SYNC.

I think if you fix those two things it should work.
Mr_Noodle
Site Admin
 
Posts: 11872
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Tag + Subfolder Wed May 25, 2016 5:15 pm • by snoozy
I'm really sorry, but I must say I'm still struggling. If I change the nested rules to "enclosing" it does work, but only if I add the tag (SYNC) to the root folder (Clients). Then it gets propagated to all the children, unfortunately, what I want is to track the child of the root folder, and propagate the tag to their children.

I will reread the sticky as I've probably missed something. Thank you again for your help.
snoozy
 
Posts: 3
Joined: Tue May 24, 2016 5:52 pm

Re: Tag + Subfolder Thu May 26, 2016 9:46 am • by Mr_Noodle
Can you post your rules as you have them currently?
Mr_Noodle
Site Admin
 
Posts: 11872
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support