Page 1 of 1

[Solved] How to create a rename user command

Posted: 01 Dec 2014 08:55
by Sander Bouwhuis
The manual is very skimpy on information about how the 'rename' user command works. I would like to create a user command that changes the extension of files.
I regularly get files of type *.png, *.gif, *.bmp, *.jpeg, *.jpg. I would like to rename just the *.jpeg files to *.jpg.

Do I just need to set 'jpeg' in the pattern box and choose 'It's a Set Extension pattern. No preview.'?
Or maybe *.jpeg? Something else?

Re: How to create a rename user command

Posted: 01 Dec 2014 09:11
by bdeshi
"Set Extension" mode can't filter the selection. IE, it will replace all selected file extensions to jpg, regardless of whether they're jpeg or not.
You're not out of options, though. Add a new rename user command set up like this:

Code: Select all

CAPTION : JPEG -> JPG
PATTERN : (.*)\.jpeg$ > $1.jpg
   TYPE : It's a Regular Expression. Show preview.

Re: How to create a rename user command

Posted: 01 Dec 2014 10:04
by Sander Bouwhuis
Wow, that's great! This is exactly what I needed!!!

Biiiiiiiiiiiiiiiiiiiiig thanks for helping Mr Sarkar!

Re: [Solved] How to create a rename user command

Posted: 01 Dec 2014 19:01
by kunkel321
Sorry for being ignorant and naive, but I must know, is, "iycgtptyarvg" actually something that can be pronounced in some other language, or is it an acronym? Or just a random string of letters?

Re: [Solved] How to create a rename user command

Posted: 01 Dec 2014 21:50
by Sander Bouwhuis
It was my very first password when I went to university (in the '90s).
It means: "If You Can Guess This Password Then You Are Really Very Good".

Aaaaaaaaaah, the time that even passwords like "1234" were accepted. :biggrin:

Re: [Solved] How to create a rename user command

Posted: 02 Dec 2014 06:31
by bdeshi
At least I had some vocal exercise trying to pronounce it.

Re: [Solved] How to create a rename user command

Posted: 02 Dec 2014 07:44
by Sander Bouwhuis
In space no one can hear you gurgle!

(your location says 'asteroid').