Rename PATTERN="_AVC" TO="" FINDREP
@NODESELECT
Rename PATTERN="_AC3maker" TO="" FINDREP
@NODESELECT
Rename PATTERN="_1080p24" TO="" FINDREP
@NODESELECT
Rename PATTERN="_TCINFO" TO="" FINDREP
@NODESELECT
now obviously this won't work
but what should I do to remove multiple strings from a batch of selected files?
I saw this:
Running several renames in the same button still isn't a good idea in Opus 9. Since the new Rename Scripting feature handles most of the cases where people wanted to do that the problems with multiple-rename commands haven't been addressed.
Unfortun…
but it's much more complicated than what I was trying to accomplish
Thanks
Leo
May 13, 2011, 5:40pm
2
You can do that using a single regular expression rename:
Old name: (.)(_AVC|_AC3maker|_1080p24|_TCINFO)(. )#
New name: \1\3
Type: Regular Expressions
Or, as a button:
Rename PATTERN="(.*)(_AVC|_AC3maker|_1080p24|_TCINFO)(.*)#" TO="\1\3" REGEXP
@nodselect
BTW, you only need one @nodeselect per button, even when there are multiple lines/commands. (It also doesn't matter where it appears. It can be put on the first line for the same effect.) @nodeselect stops the files being de-selected after the button completes (not after each line).
Sir...
It works.
Like magic.
Now I shall study to understand it.
Thanks!