Cycle pattern w/o script

Advanced Renamer forum
#1 : 13/02-25 11:28
Kostas
Posts: 2
Hello,

I have 50 filenames that I want to have the words Jan, Jun, Oct in this pattern/cycle.

The 1st will have Jan,
the 2nd Jun
the 3rd Oct
the 4th Jan
the 5th Jun and so on.

Can I do this w/o scripting?
#2 : 13/02-25 18:36
Delta Foxtrot
Posts: 422
Reply to #1:

Yasou Kostas,

Make a text file with .csv extension, call it JanJunOct.csv :) like the following with 50 or more entries

Jan
Jun
Oct
Jan
...

Import it as data into ARen on the "Add" menu, and in a new name method enter

<csv:1>_<Name> OR <Name> <csv:1>

or whatever you want, including the <csv:1> tag.

Csv tag: https://www.advancedrenamer.com/user_guide/v4/ta gs_advanced

Best,
DF

EDIT: Stop reading here unless you want to see how a script does it. I can't resist. No silly csv-making...

n = " " + item.newBasename ;
t = ( app.currentIndex + 1 ) % 3;
return (t == 0 ? "Oct" : (t == 1 ? "Jan" : "Jun" )) + n;

:) You can add any methods above this to change the name before applying the month.
END EDIT

edited: 13/02-25 20:06