Color folder name text in all folders under a specific named subfolder

OK, so i am under the effects of Valium after a minor surgical procedure. I will accept any and all criticism if this is too convoluted from which to make sense.

I have perhaps 5 active sources that submit applications to me. Under the main tree heading of Work each Source has it's own folder and beneath each Source folder (each "Source folder" is named after the invidual source), three sub-folders - Active, Closed and Dead. In each of these three subfolders are folders containing files on specific projects.

If a folder for a group of files is placed under any one of the Active subfolders, i would like the name of it to be automatically colored green. I do this manually at present by selecting the folder, clicking the drop-down in Properties, selecting Set Label, and selecting an entry that i created called "Green" (real creative!).

I was just wondering if there was a way that as soon as a folder was transferred into a subfolder named "Active" something could trigger to color the project folder name text green.

Not exactly a critical function, but would save a little time!

If there is an easy script implementation to do this i would enjoy learning!

Thank you,

1 Like

In Opus 12: It could be done using a script column which does all the heavy lifting, and a filter-label that queries the script.

In Opus 13: A filter-label using the new Folder Content clause type should let you do it without any scripting. The new clause type lets you match/exclude folders based on the things they contain.

Looking forward to 13 release!!! When do you think it will be ready as a regular (not a beta)?

A hotkey or button would already be a bit faster:

Properties SETLABEL=Green

Thank you! Took me a bit to figure out once again just how to make the button, but it works fine with the code you provided for me - i never would have figured that out.

Looking forward to V13 and then learning just how to proceed as Leo advised - i can read many of the words in that which he wrote, but a number of them appear to be in a language i don't yet understand :wink:

How do i mark two solutions?

Reading your initial post again... I think this should already be doable with v12, unless I missed something.

Here are the settings for the demo:

This is the regex for the filter:


OK, so i am amazed - Thank You very much!