Page 1 of 1
Rename File
Posted: 27 Jul 2009 15:47
by Ysl
Hi
I would like to be able after selecting a file to push a key and it will be renamed to "cover"
So that xyz.jpg will become cover.jpg (the same with *.bmp files)
This seem simple but I did not found how to do it with User manager Command so maybe it would work with a script but for that, I need your help as I'm don't know how to write a script...
Thanks
ysl
Re: Rename File
Posted: 27 Jul 2009 16:09
by zer0
Here's a quick script that will rename all files to cover.<ext>, not just JPEGs and BMPs. If you need it to apply to just those types then drop me a line and I'll add another one for that
Code: Select all
"Rename to Cover" rename s, "<curbase>/cover";
Re: Rename File
Posted: 27 Jul 2009 17:10
by Ysl
Works great like this !
Thank you very much !
Ysl
Re: Rename File
Posted: 31 Jul 2009 14:55
by admin
zer0 wrote:Here's a quick script that will rename all files to cover.<ext>, not just JPEGs and BMPs. If you need it to apply to just those types then drop me a line and I'll add another one for that
Code: Select all
"Rename to Cover" rename s, "<curbase>/cover";
This does it simpler:
Code: Select all
"Rename to Cover" rename , "cover";

Re: Rename File
Posted: 06 Aug 2009 22:28
by Ysl
May I ask for an improvement in this script..
which will :
Copy the selected file in the same folder and then rename it to cover.jpg
Re: Rename File
Posted: 06 Aug 2009 22:38
by admin
Ysl wrote:May I ask for an improvement in this script..
which will :
Copy the selected file in the same folder and then rename it to cover.jpg
Try this:
Re: Rename File
Posted: 06 Aug 2009 23:02
by TheQwerty
I'd suggest using this instead:
That way you can use it on other image types without blowing away the proper extension.
Re: Rename File
Posted: 07 Aug 2009 20:04
by Ysl
Thanks again !