Apply tags to files in different subfolders

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

Moderator: Mr_Noodle

Hi,

I have a folder, call it Books, with many subfolders:

    Anatomy
    Chess
    Physics
    History


I want to add a specific tag, e.g. "Chess" to all files in the Chess folder, "Physics" to all files in the Physics folder and so on. How can I do this state-of-the-art without creating an individual rule for each subfolder?

Thanks.
wishmaster
 
Posts: 12
Joined: Wed Sep 26, 2018 3:36 pm

Look up "nested conditions" and "match patterns" in the manual. Using those, you can do something like:
Code: Select all
    If (all) are met
        If (all) are met for (the enclosing folder)
            Name matches (•parent name)


where •parent name is a custom attribute with (anything) as the pattern. That will put the name of the parent folder into that attribute. You can then use that attribute in a dynamic tag in the Add tags action.
Mr_Noodle
Site Admin
 
Posts: 11255
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support