create date based folders and moved renamed pics there

Advanced Renamer forum
#1 : 31/07-23 18:37
Todd
Todd
Posts: 1
I have folders of pics that I want to:
create folders/subfolders of yyyy/mmmm if they don't already exists
rename pics yyyymmdd_increment.jpg and move into correct folder/subfolder

the renaming rules are easy. i can't figure out how to create the folder structure and move the files there.

any thoughts?


31/07-23 18:37
#2 : 09/12-23 14:42
Bart Kestelyn
Bart Kestelyn
Posts: 3
Reply to #1:
I use this script:
date = app.parseTags("<ExifTool:DateTimeOriginal>").split(/[_ ]/);
EXT1 = app.parseTags("<ExifTool:FileTypeExtension>")
EXT2 = EXT1.toUpperCase()
Y = date[0];
M = date[1];
D = date[2];
h = date[3];
m = date[4];
s = date[5];
item.newPath = "N:\\" + EXT2 + "\\" + Y + "\\" + M + "\\" + D;
return item.name;


09/12-23 14:42