Advanced Rename Button (Capitalise, number, formats...)

Hi,

I made a button that use this script and do the jobs below:

(All actions are fully customizable)

preview

[Old Imageshack URLs are all broken and removed.]

CLEANUP and CAPITALISE

Results example:
..............Original filename................................................................................After treatment

[Old Imageshack URLs are all broken and removed.]

RENAME & NUMBER MULTIPLE FILES

Rename selected files - BEFORE

[Old Imageshack URLs are all broken and removed.]

Have to fill in two dialog box

[Old Imageshack URLs are all broken and removed.]

Result - AFTER

English version - All Features

French version - other Features for which I was too lazy to translate in english

_________________________________________________________________________________________________________________

HOW TO

in attachment you'll find a zip file which contains:

[1] All needed renaming presets
[2] Batch that install [1] (french or english ones)
[3] Some previews
[4] The button in .xml

Just run [2] to install renaming presets.
(Note: Path in batch will be ok for XP only, modify them to run in Vista or Seven)

To install button [4]. Click a toolbar, select "customize" and drag&drop one of those versions (.xml file) where you wish it to be. If a smiley appears, it's bad. So open the xml file with a text editor like notepad, select all the code (ctrl+A) and paste it upon a toolbar (right click, paste).

Please notice that some buttons have hotkeys (see first screenshot). If you already use same hotkeys , either you edit the xml file to change or delete "hotkey="ctrl+shift+f2"" string, or you edit the button or you delete the red one in customize dialog box->hotkeys[

Rename presets are based on existent in the forum & they are customizable. Modify or translate them for your need.
_________________________________________________________________________________________________________________

Tips:

I suggest you add 2 other rename buttons on the list

They're very useful to me. But if I were you, I would replace I = 1 with I = 0 in all the vbscript so they would seem more logical to use. (Be careful I is i and not L :wink: )

Example: Use of Remove Characters (count from left) button on file bip#bip me.txt

with the original version i.e. I = 1
If I want to erase the # I must type 4,1

with the changed version i.e. I = 0
If I want to erase the # I must type 3,1

Sounds more logical to me.
_________________________________________________________________________________________________________________

You're welcome to comment the work and your experience with it.

PM me if you have problem or post in Help & Support forum.
If you translate Advanced Rename in your language, please post it in this thread.

:smiley:
_________________________________________________________________________________________________________________

current version : 3.0 updated 2010.10.28

history:

4 Likes

Here you go:

Rename NUMBER {dlgstring|Enter first number|01} REGEXP PATTERN="(.*)" TO="[#]{dlgstringS|Enter separator|" - "}\1"

Thanks to Steve for working out how start the default separator string with a space. :slight_smile:

It was so obvious. You're awesome Leo. I have updated the first post & add the code to attachment.

version update to 2.0.2

  • some code improvement & bug fixes in cleanup regex

see first post to download

I'm wondering what is the adavantage to run both scripts ([1] Book Title Caps.orp and [2] Cleanup.orp) whle doing the cleanup?

"Book Title Caps" is useful in other language than english or for adding prepositions that mustn't be uppercased. By default, DOpus 'uppercase' option in advanced rename dialog isn't powerful as "Book Title Caps".

You're free to use it or not.

New Release post #1
(Bugfix)

2008.09.09 - TEST - EXEMPLE. EXT

resulted

2008.09.09 Test - Exemple. ext

instead of

2008.09.09 - Test - Exemple. ext

Example:
I have a file named PruebA v5.6.0.
The Cleanup button rename it to Prueba V5.6.0
How can i rename the file but not the "v" from version?

Hi,

I'll post an update today that fixes that & other things. Just wait :wink:

updated to version 3.0

have fun

i run the bat file to install it and i get a red screen that flashes briefly, nothing seems to happen

by the way i don't know anything about how to run scripts

thanks

Run a batch is like run an ".exe", double click on it.

I said it will properly run on XP. I don't know anything about vista or seven but its annoying UAC.

[quote="fred"]Just run [2] to install renaming presets.
(Note: Path in batch will be ok for XP only, modify them to run in Vista or Seven)
[/quote]

The batch is designed to copy Presets\English or Presets\French contents to C:\Documents and Settings[USER]\Application Data\GPSoftware\Directory Opus\Rename Presets (on XP) if the path exists.

If the batch doesn't work for you, manually copy Presets\English contents in the destination folder above if you run XP.

The destination path on vista or seven (or XP) can be directly accessed in DOpus by writing in the path field (address toolbar) /dopusdata\Rename Presets or /dopusglobaldata\Rename Presets if the first fails. If Rename Presets folder doesn't exist, create it.

thanks very much for this, appreciated!

The rename same doesnt work though

Hi fred thanks for useful presets and button. I don't understand one think, how to use the Rename whith a same name button? should I select movie and subtitle both of the file first then press the button like this
image
but when I press this button the dialog box display my clipboard text, then If I have to copy the movie name first then click the button it will works but then why should I use this button, I can paste that text directly in the subtitle file

I don’t think this feature works. I don’t use it anymore. I use a button to copy the name of the movie

@disablenosel 
@nolocalizefiles 
@nofilenamequoting 

Clipboard SET {allfile$|noext}

then manually paste for the subtitle (F2, CTRL+V, Enter).

Which feature? What isn’t working?

The Rename whith a same name of my button. This :point_down: works on my setup but the issue may be it uses a filter not installed on other setup. It’s a very old button and there might a more elegant way to achieve that now.

@filesonly 
@disablenosel
@nofilenamequoting 
@filesonly

// ===========================================
// deselect not media files
Select "Not video or audio" FILTER DESELECT

@set destfld={dlgstrings|Enter a name (extensions of selected files must be different)|{clip}}

Rename TYPE=files autorename REGEXP PATTERN="^(.*)(\.[^.]+)$" TO="{$destfld}\2" 

Yes. Use

You can copy the name from the previous file by pressing Ctrl+Shift+Up (or Ctrl+'), or from the next file by pressing Ctrl+Shift+Down (hold the Alt key down as well to also copy the extension). Continue to press the keys to move up/down the list of neighboring files to copy their filenames.

https://www.gpsoft.com.au/help/opus12/index.html#!Documents/Inline_Rename.htm

and/or

Rename all selected files at once: When this option is turned on and you start an inline rename with more than one file selected, all selected files are renamed using the new name you enter. Numbers are added to the end of the second and subsequent files to make them end up with unique names. This emulates the behaviour added to Windows Explorer in Windows XP.

(Check Preferences / File Operations / Inline Rename / Rename all selected files at once)

https://www.gpsoft.com.au/help/opus12/index.html#!Documents/Prefs/Inline_Rename1.htm

Is the thread still useful or should we delete it?

All the imageshack images in the post have broken, which makes it quite hard to follow as well. I'm not sure why the new (since the post was originally made) forum software didn't create local copies of those automatically, but they're gone now. (Maybe it only does that for new posts. I'm not sure.)