Posted on: 2014-07-31 08:15:00 -0400

I’ve been moving all of my photos from Aperture to Photo Supreme and am taking the opportunity to rename the files. They’re currently a mix of names given the original sources. I’m going with a year, month, date, and sequence field. The problem comes when selecting a large number of files in Photo Supreme and batch renaming them, as the sequence number continues incrementing across dates:


2014-01-01-0001.ORF
…
2014-01-01-0010.ORF
2014-01-02-0011.ORF
…
2014-01-02-0020.ORF

Where the obvious desire is to get:


2014-01-01-0001.ORF
2014-01-01-0010.ORF
2014-01-02-0001.ORF
2014-01-02-0010.ORF

Turns out that’s done easily enough using reset:


%yyyy-%mm-%dd-%ImageNumber{reset=date;length=4}.%FileExtension