How to add folder's name as tag

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

Moderator: Mr_Noodle

How to add folder's name as tag 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.
apirak
 
Posts: 2
Joined: Thu Dec 02, 2021 8:05 pm

Re: How to add folder's name as tag 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.
Mr_Noodle
Site Admin
 
Posts: 11193
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support