#1 : 15/04-16 16:55 L
Posts: 11
|
Hi at all.
I'm looking for a way to add [END] at the last file. For example with the renumber rule I will have: File 1 file 2 .... file 34 After that, i want "file 34" to be renamed in "file 34 [END]". Can someone help me? :( |
#2 : 16/04-16 17:39 Tester123
Posts: 92
|
Reply to #1:
To add ' [END]' at the end of your filename, use the 'Add Method' with these settings: Add: <space>[END] At index: <leave blank> Backwards: Tick |
#3 : 17/04-16 13:39 L
Posts: 11
|
Reply to #2:
this way i'll add [END] to every file, I want to add it only at the last one of the batch |
#4 : 17/04-16 18:44 Tester123
Posts: 92
|
Reply to #3:
Ooops, didn't read your original post properly :-) OK, try this 'Script Method': // ----- Start of Script ----- var newFilename = item.name; if (index == app.itemCount - 1) { newFilename = newFilename + " [END]"; } return newFilename; // ----- End of Script ----- |
#5 : 21/04-16 17:35 L
Posts: 11
|
Reply to #4:
Thanks for the help, I tryied your script but it works! I have only a little complain: I don't get why, but if I use your script all the other batches won't work. Like i set your script and "delete 20 latest character", but if I use your script, "remove" wont' work. |
#6 : 21/04-16 23:01 Tester123
Posts: 92
|
Reply to #5:
Hi, Yes, you are right. Fortunately, I recently discovered item.newBasename which will solve the problem and play nice with your other rules: // ----- Start of Script ----- var newFilename = item.newBasename; if (index == app.itemCount - 1) { newFilename = newFilename + " [END]"; } return newFilename; // ----- End of Script ----- |
#7 : 22/04-16 16:14 L
Posts: 11
|
Reply to #6:
thank you a lot! now it's perfect :D |