Looking for a button to Capitalise

hello there.

like most people i do a lot a renaming of file names in directory opus.

for a long time i've been clicking on the rename button and use the advanced rename with saved presets but i'm getting bored with all the steps.

i made a button to replace a _ with a space which saves a lot of time so the next thing i wanted to try was to capitalise the first letter of every word.

i did find a post from leo from 2006 where he boasts of his marvelous button but i can't see the code he used. :smiley:

can anybody help please?

The code is just this:

rename CASE=allwords @NODESELECT

(You don't need the 2nd line but it's handy if you often want to do another rename afterwards and don't want to lose the selection.)

See also: Steve's TitleCase script if you want more advanced capitalisation.

Also note that you can make buttons which run rename presets if you already have a preset and just want to automate it down to a one-click button. The command would be just:

rename PRESET="name of preset"

Or you can have a list/menu of presets on your menu or toolbar:

rename PRESET=!list

that was very prompt and very helpful

i think i shall play with my new knowledge for the rest of the day