I would like to replace the period(.) in filenames with Space; when it does not appear in between numeric digits.
For Eg:
I would like "Directory.Opus.9.1.txt" to be renamed as "Directory Opus 9.1.txt"
[quote]Just had a problem with this..
When I rename folders, the last dot in the name is left unchanged.. Probably because of the non existence of extension
[/quote]
Yes, it has been bothering me as well ... among other things about it.
Try this:
Actually, I was hoping both of these could be run in the same button.
Multiple remames in one button have been working well for me in recent versions of Opus until tonight.
It may really be that a script is needed here to accomplish this in one button.
Ohh ... little things that you already see.
What happens to an ellipsis,
such as ... or ...... or .. ,
possibly or possibly not surrounded by space characters ?
And can anything be done if a file name ends like .......txt .
And what about Folders ?
[quote] is there a way to save this as a preset in the "Advanced Rename Dialog"?
[/quote]To be honest, I'm not certain at the moment how to do that,
but it is probably easy to do.
[quote="Zippo"]
What happens to an ellipsis,
such as ... or ...... or .. ,
possibly or possibly not surrounded by space characters ?
And can anything be done if a file name ends like .......txt .
And what about Folders ?[/quote]
Never came across such names till now.. so everything fine!
and hope not to see them in future too
[quote="Zippo"]
[quote] is there a way to save this as a preset in the "Advanced Rename Dialog"?
[/quote]To be honest, I'm not certain at the moment how to do that,
but it is probably easy to do.[/quote]
If you want to make it a Rename Preset instead of a button it would have to use some VBScript. I'll make an example script later as it seems like a useful thing to have.
i figured how to make Regex buttons doing that task, but i can´t find out, what kind of button is needed to simply "find & replace" all "-" with " - " for all selected files, or the like. Can someone help me please? I found that it´s far more convenient having a toolbar with the frequently used renamers than opening the dialog.
(Where Swap Various Artists is the name of a preset.)
Sometimes it's still good to create a button that doesn't use a preset if you don't want the preset cluttering up the list.[/quote]
Thanks! That´s great! I still have some questions. How would the code look for changing all names to first character=upcase, like Ctrl-W would do in rename mode, & how to replace undersores by spaces?
I played around for over an hour & couldn´t figure it out. It would be very nice, if exporting all renames directly to buttons was supported, although it´s already possible to export them to .orp files.
The Rename command has a CASE argument that lets you convert names to upper or lower case in various ways. To make the first letter of each word uppercase you'd just use this:
rename CASE=allwords
For a button that replaces underscores with spaces you could use this:
rename PATTERN="_" TO=" " FINDREP
Add @nodeselect on a separate line to both of them to make it easier to use multiple buttons on the same files.
[quote="leo"]The Rename command has a CASE argument that lets you convert names to upper or lower case in various ways. To make the first letter of each word uppercase you'd just use this:
rename CASE=allwords
For a button that replaces underscores with spaces you could use this:
rename PATTERN="_" TO=" " FINDREP
Add @nodeselect on a separate line to both of them to make it easier to use multiple buttons on the same files.[/quote]
This can be repeated in one function, but here was a little problem
@NoDeselect
rename CASE=allwords
rename PATTERN=" The " TO=" the " FINDREP
rename PATTERN=" Cd " TO=" CD " FINDREP
rejected to change one "The" into "the" in one title, for some reason. Aren´t the lines processed consecutively? For now i use two buttons.