Cycle pattern w/o script
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?
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?
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/tags_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
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/tags_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