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,
Bruce

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.

1 Like

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:

@nodeselect
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:

.*\\Active$

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

hmmm, how can can i apply similar filter to folders containing "*.flac" files? im shuffingling thru 100s-gigs of music.

i've trying to figure this out on my own for a few days. i finial got a folder label reading correctly from one of your posts by moving the * around. this great if the the word flac is in the folder name.

now, cause why stop here? haha

im trying to apply this label to if there is .flac in side of it. i think it can be dont on dopus 13?

i think i may have just figured it out....

almost... this is working but its also labeling folders that do have any .flac in them. it must be searching fuzzy?

Contains doesn't mean what you think it does :wink:

Try

foldercontent match ( 
	name match flac nowild partial
)

(Check Edit as text)

1 Like

ahhh! this is great!

alas running such filters on a dense media drive is certainly giving it a spin-for-its-$!

dopus is lagging but hang on ... it crashed the Resource Moniter however. LOL