Page 1 of 1

How to add folder's name as tag

PostPosted: Sat Aug 13, 2022 9:41 pm
by apirak
Hi :)

Is it possible to tag photos inside a folder with the name of the folder?

The problem is that I monitor the parent folder instead of that folder directly.

Image

I want to monitor on "Screenshot-all" and when I add photo to "Commit" folder I want to tag "Commit" to the photo.

Re: How to add folder's name as tag

PostPosted: Mon Aug 15, 2022 9:33 am
by Mr_Noodle
You can try 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 text attribute which is set to match "anything". See the manual on how to do a nested condition.

What the above does is store the name of the parent folder into that attribute. You can then reference that attribute in the Add Tags action via a dynamic tag.