Rename a file, in rename dialogue window, the Ignore Extension is Ticked, but to make this work you have to untick the box i.e. it's reverse
Working fine for me.
By default "Ignore Extension" is ticked, and what you do with existing and new name does not take into account extension (it is ignored as in : not in the pattern, not changed by the rename function).
If you want your pattern to include extension, you have to untick.
To be honest, I was a bit confused as well.
Then again, most likely I am doing something wrong, or at least tthinking the wrong way.
Example:
Old name: *
New name: [#]-{name}
(so, just adding adding a seq.nbr. to the existing name)
Ignore extension: checked
Now, I believe(d) the rename should then take place on the filename only i.e. the extension is not taken into account at all whilst renaming.
However, above rename adds the extension to the full file name (with extension, 'file name.jpg'), resulting in double extension (file name.jpg.jpg)
Rename should be altered into:
Old: * .*
New: [#]-{name}
Uncheck : Ignore extension.
Try changing new to [#]-*
{name}
probably includes the extension.
Updated my post, 3rd line from bottom: Old, to read: Asterisk-dot-Asterisk
If you ignore extension, you don't have to specify it in the Old
mask :
- meaning no
.*
- You can use
*
to match the whole filename - You can use
SomeText*SomeOtherText
so you can rename only files matching that pattern
But *.*
will not match files unless they are named with dots before the extension (e.g. in the form namepart1.namepart2.ext
)
EDIT : To try and make it clearer, here's the way I approach this.
Most of the time renaming a file will be done without changing the extension (since we're only renaming, the content is not changing, and as a consequence, the extension will remain unchanged).
For that very reason, it's going to be much easier to define the rename scheme without having to consider the extension, both in the old
and new
patterns.
So when you check ignore extension
that is exactly what's happening : you're working on the filename part without the extension. If you really want to alter the extension or if you want to use it in the "new" pattern, you will have to untick ignore extension
.
You can then use all the methods Opus provides :
- Standard mask : any
*
in "old" will match a part of (e.g.Begining*End
will match everything betweenBegining
andEnd
) or the whole (e.g. when using only*
) filename. In "new", using*
will "copy" what was initially captured by*
in "old". - Search and replace : no wildcards here. Will just replace every part matching "old" by "new" in any selected file (which filename has a part matching "old"). If
ignore extension
is ticked, extension is not considered, otherwise, you could use it to change extension for instance (old:.txt
, new:.csv
). - Regular expression : for more advanced searching (and replacing if you use capture groups). Same applies for the
ignore extension
: if you don't ignore it, you have to take it into account in your regular expression. This method relates to the first one (Standard mask) but with the power of regexp to achieve your expected result. - Regular Expressions + Search and replace : relates to the second option, but once again with the power of regexp to only alter what you searched by what you want to replace it with.
I hope this helps you understand the way this works.
EDIT2 : If my explanations are not clear enough, I just checked the manual which seems quite clear about this (see the links at the bottom of the page, especially the one on Rename Modes).
https://docs.dopus.com/doku.php?id=file_operations:renaming_files:advanced_rename
Thanks a lot!
As you already wrote, {name} probably includes the extension.
Changed it into [#]-*
as suggested.
Thanks again.