I'm trying to add a button that on clicking sets a blue label to any S01.* filename and a red label to any F02.* filename.
Is it possible at all? If yes, any kind of advice is much appreciated.
I'm trying to add a button that on clicking sets a blue label to any S01.* filename and a red label to any F02.* filename.
Is it possible at all? If yes, any kind of advice is much appreciated.
If you go to Preferences / Favorites and Recent / Label Assignments you can add new wildcard labels there which automatically color all current and future files matching those patterns.
If you only want it to be done in certain folders, or to files in the current folder when you click a button (with files added later not being colored even if they match the pattern), that's also possible, but would be done differently. Ask if you want either of those instead.
I'm looking for the second solution. Having a button to set labels for current folder only.
Thanks for helping.
You can make wildcard labels which apply to all files matching a pattern within certain folders. It can be done in a few ways, but the usual one would be the make the label definitions part of the Folder Format for those paths.
For example, in Preferences / Folders / Folder Formats you might have a *\TV\*
wildcard format for all folders which are below a "TV" folder, where odd and even seasons are given different background colors:
You could do the same but using S01.*
and F02.*
as the wildcards.
(For completeness, the actual colors are defined under Preferences / Favorites and Recent / Labels.)
Million thanks