Fixing overlapping timestamps

A swapping-ground for Regular Expression syntax

Fixing overlapping timestamps

Postby BoBarrel » Wed Jul 24, 2024 1:29 am

I've got some image files that I've been renaming using Name + Auto Date (based on Taken(Original) and using the custom expression %m%d%y_%H%M%S). However several of the images were taken at almost the same time, within a second of each other, and these files with overlapping timestamps are named "Name_Timestamp" and "Name_Timestamp_1". That's fine, except that it applies the "_1" to the first image chronologically, which makes it out of order when sorted alphabetically. Is there any way to have the "_1" applied to the second image chronologically rather than the first?

Secondly, is there any way to use BRU to switch the "_1" on the files that have already been renamed? Some kind of expression that would search the folder for files with identical filenames save the _1 and switch it?

Thanks!
BoBarrel
 
Posts: 2
Joined: Wed Jul 24, 2024 12:30 am

Re: Fixing overlapping timestamps

Postby Admin » Wed Jul 24, 2024 3:12 am

Hi, are you able to see the second an image was taken in BRU in one of the image time stamps / item date / file properties etc ?
Admin
Site Admin
 
Posts: 2883
Joined: Tue Mar 08, 2005 8:39 pm

Re: Fixing overlapping timestamps

Postby BoBarrel » Thu Jul 25, 2024 2:44 am

Yes, I'm able to see the second that the images were taken in the BRU window and the timestamps are completely identical, down to the second.

However I've just figured out a solution, or more to the point, what I was doing wrong to begin with. The images by default are simply numbered sequentially: 001, 002, 003, etc. When I've been dropping them into the BRU window it defaults to sorting reverse alphabetically by filename, which isn't an issue for images taken several seconds apart, but does put those with overlapping timestamps in reverse chronological order. All I have to do is set it to sort alphabetically in the BRU window rather than reverse alphabetically and the problem is solved. Bonus is that I can just take all of the files that I've already renamed and drop them in again with the same parameters, sort alphabetically, and they'll swap the "_1" suffix.

I do wonder if there's a way to have it default to sorting alphabetically rather than reverse so that I don't have to manually change it?

Thank you! BRU is great, by the way!
BoBarrel
 
Posts: 2
Joined: Wed Jul 24, 2024 12:30 am


Return to Regular Expressions