Create hotkey to toggle through my File/Folder label colors?

Out of all of my custom File and Folder Label colors, there are 3 that I use the most. Is there a way to create a hotkey that would let me select one or more files, then press a hotkey that would turn their file names blue, then press the hotkey again to turn them green, then press again to change them to purple, then finally one last hotkey press to reset their color to the default black?

I am basically asking for a toggling hotkey that cycles through 3 colors, then finishes with the "reset color" option. I read this Toggle Label Colors ? article, but I don't understand the scripting that is used. Any help is appreciated, thank you.

Hmm, i don't think it's currently possible, without using modifier keys for the colors at least.

I have been looking to do something similar, but have not found a way.

The DOpus devs should consider adding a 'label' property to the scripting object 'Item', it would hold the current label name set for the folder/file. This would solve what SomeYoungGuy and I want to accomplish through a script.

I got round this one by setting up a small VB script with a form (you need to be using Opus 12). The form is on a button and contains three radio buttons each with a label attached. You just choose the appropriate radio button to change the label on your selected files. Works a treat.

LABEL.dcf (2.63 KB)

This little VB program attached to the button should do the trick. I have indicated in the script where you need to change the name of the labels to match your own.

Just select the files where you want to change the labels and run the button the labels will be replaced by the colour you choose

I don't think the script really does what SomeYoungGuy is asking for. You could do the same thing without a script, just with a simple button for each of the colors (put inside a menu, if desired).

Setting files to a particular label/color is easy since there's a command for it. Same for toggling a label/color. But, at least that I know of, there isn't currently a good way to cycle through multiple labels from a single click of a single button.