step 1 - make the filename all lowercase
step 2 - capitalize a specific series of acronyms
Before: "How To Tweak MS Windows XP.doc"
After: "how to tweak MS windows XP.doc"
I've created the following button:
Rename CASE=lower
Rename PATTERN=" ms " TO=" MS " FINDREP
Rename PATTERN=" xp " TO=" XP " FINDREP
@NODESELECT
The problem is that I have found that I need to include spaces in the pattern command or else it will capitalize any occurrence of "xp". But if I do that, any acronyms that are in the first or last positions of the filename won't be picked up. If I execute the button that I've created, I get "how to tweak MS windows xp.doc".
For now I think you will have to split the command into three buttons (e.g. left, right and middle-click of a three-button) which each do one rename on its own.
In the current version of Opus chaining several renames together often doesn't work. I believe it's on the list to be improved in the next version.
I only tested with a single rename command and that definitely does work.
Just as another example of the new rename scripting in Opus 9 - I've created a short script to perform the specified rename.
Just create a new preset and import the .orp file to it. It makes the filename lowercase and makes sure 'ms' and 'xp' are capitalised. NateDawg.orp (1.81 KB)
I've been testing it a bit and it seems to come up correctly no matter the scenario that I throw at it. Without specifying any spaces on either side of the search term ('XP' in this example), it will only capitalize it if it's found on it's own which is what I want. If I have to specify other occurances such as 'WinXP', that's fine.