Reverse naming script

Advanced Renamer forum
#1 : 01/09-13 09:02
Zeezuiper
Zeezuiper
Posts: 1
I downloaded some files where the names where in reverse. I wrote the following simple script to rename the files back:

function (index, item) {
var OldName = item.name;
var NewName = OldName.split('').reverse().join('');
return NewName;

Have fun with it!


01/09-13 09:02
#2 : 01/09-13 17:50
Kim Jensen
Kim Jensen
Administrator
Posts: 755
Reply to #1:
The is fun and clever. It can actually be done in one single line of JS code:

return item.name.split('').reverse().join('');


01/09-13 17:50
#3 : 18/04-15 14:44
arwul
arwul
Posts: 80
Reply to #2:

Very nice indeed!

Maybe add this to Advanced Renamer
New Name -> Default tags or Advanced Tags ?

=


18/04-15 14:44