Page 1 of 1

tagging source folder and document container

PostPosted: Sat Aug 16, 2014 7:14 pm
by spinozist
Sorry if this is answered elsewhere here--I've crawled through the threads and couldn't find what I'm looking for.

I'm new to Hazel and am trying to have it do two things:

1) tag all the subfolders (regardless of depth) in Folder A with the "source folder" (i.e. "Folder A")

While I've gotten Hazel to tag the source folder (i.e. "Folder A") up to three subfolders down, it won't tag any folder lower than this.

Here is the rule that I set up for this:

If ALL of the following conditions are met:
KIND IS FOLDER
Do the following to the matched file or folder:
ADD TAGS SOURCE FOLDER.

2) tag all everything within Folder A (i.e. subfolders and files) with the name of the subfolder enclosing it.

Hazel does not apply the rule that I set for this, which is:

If ALL of the following conditions are met:
ANY FILE
Do the following to the matched file or folder:
ADD TAGS DOCUMENT CONTAINER.

Can anyone help me with this one? Thanks!



Also, it won't tag any of the document containers for the subfolders and files.

Re: tagging source folder and document container

PostPosted: Mon Aug 18, 2014 12:15 pm
by Mr_Noodle
Read the sticky article at the top of the forum. It tells you how to go into subfolders.

To do #2, you can do something like:
Code: Select all
    If (all) match
        If (all) match for (the enclosing folder)
            Name matches (• enclosing name)
    Add tag (* enclosing folder name tag)


To get the nested condition, hold down option key while clicking the + button to create a new condition. For the other stuff, read the help on "match patterns".