This is to get you started and maybe even more interested in this scripting-thing sooner or later, who knows? o)
I've attached a jscript file, remove the txt-extension and drag it over to the preferences->toolbars->scripts section - a new user defined command will be available in DO after that.
It's called "RenameBaseNameContinueNumbering", sorry - nothing better came up my mind.. o)
The code section below shows a button, which makes use of the new rename command, copy this code into your clipboard and paste that onto any toolbar while in customize mode.
A new button is going to appear, making use of that command added before. Combining this with "F2" is not covered, so you need to make use of this new button for now or create a another hotkey for this e.g..
This thing won't fit your expectations to 100% I think, but you should be able to see what's possible with DO and maybe even use it seriously for those two scenarios you described.
If no file has been found which carries a number, a dialog will appear allowing to set a new basename for all selected files (default is the basename of the first file of your selection).
If a numbered file or files were detected, the basename of the first one of those will be used as basename for those not yet numbered. Files which are already numbered, won't be affected at all.
Currently files will be named like those in your examples -> "my filename (x).ext", though the rename will catch up numbers from anywhere in a filename, be aware of that please.
Be careful, use this on test files only, until it seems to work stable for you (and if not, well.. o). I'll take no responsibility on your data of course. o)
<?xml version="1.0"?>
<button backcol="none" display="both" textcol="none">
<label>RenameBaseNameContinueNumbering</label>
<icon1>#newcommand</icon1>
<function type="normal">
<instruction>RenameBaseNameContinueNumbering</instruction>
</function>
</button>
RenameBaseNameContinueNumbering.js.txt (3.88 KB)