Page 1 of 1

Apply tags to files in different subfolders

PostPosted: Sun Feb 07, 2021 9:28 am
by wishmaster
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.

Re: Apply tags to files in different subfolders

PostPosted: Mon Feb 08, 2021 11:12 am
by Mr_Noodle
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.