#1 : 14/06-16 17:49 Cassiano Zanon
Posts: 3
|
Hi!
At work i had to rename 650 files. Turns out i skipped one file in the middle. So i added it, but now i have to take the names from subsequent files to the one i added and move them all up 1 "slot". Is there a way to do this? Just move the file names, so i dont have to rename every single one again? I hope it didnt sound confusing. Thanks guys! |
#2 : 14/06-16 22:59 G. Lambany
Posts: 187
|
Reply to #1:
Could you give example of the file names you are dealing with (previous & current)? |
#3 : 15/06-16 17:28 Cassiano Zanon
Posts: 3
|
Reply to #2:
Yes! Here's a screencap: http://i.stack.imgur.com/Yzmwl.png All the FILE NAMES after "01_21reaaaallll" must move up one slot, so the "01_21" would replace the "01_21reaaallll", and so on. Only the file name, not the file itself. |
#4 : 16/06-16 07:31 G. Lambany
Posts: 187
|
Reply to #3:
Well, I could do it in a python script, BUT it seems to me there is a rather simple way to hack this into advanced renamer, and it is the "list" method. #1-Only load the files you want to fix in AR, this is really important. So in your case, the files 01_21.mp4 and below should be in advanced renamer only. #2-Sort the file in reverse order, by clicking the "filename" column in AR. 01_21.mp4 should be now last, very important #2-Insert the "list method", and make sure it is the only method, or the only one active #3-In the list method, there is a "populate list" button, click it, the list will fill itself with all the current filenames #4-Delete the last filename in the populated list #5-Add one line at the top of the list and put the name you wish the last file will have. #6-Faceroll the rename ^_^ cheers! |
#5 : 16/06-16 17:59 Cassiano Zanon
Posts: 3
|
Reply to #4:
Holy shit man, worked like a charm. Seriously, you have no idea how much time it saved me. Thanks SO MUCH! Really. |
#6 : 17/06-16 07:09 G. Lambany
Posts: 187
|
Reply to #5:
If you have the same problem again, here is a faster way to do it: scripting method, with the following code, to shift names up: return (index == app.itemCount - 1) ? 'Untitled' : app.getItem(index + 1).newBasename; or this one to shift names down: return (index == 0) ? 'Untitled' : app.getItem(index - 1).name; cheers! |