Truncate Names in Batch Rename?
Hello!
Due to an unfortunate bungle, I have 35,000+ images which have the wrong date format at the start of the file name. This is followed by the camera derived name which I need to keep.
Is there anyway I can truncate this date from the start of the files and replace it with the correct format using the batch process?
I was thinking there would be the ability to truncate it out in some way?
Cheers!
-
Maybe. It rather depends on how the date is formatted.
There is a Find and Replace mode in Batch Rename. See this example
That would take an image called DSC12345.NEF and rename it to 12345.NEF - just replacing the DSC with nothing.
So if your images were called something like 2023-03-24-DSC12345, you could take off the 2023- from the front of that by this method and be left with 03-24-DSC12345.NEF.
But you'd then have to go through with all the 03s, all the 04s and so on, and then do the days. Tedious!
But if you had a lot of images taken on the same day, you could readily enough strip out the whole date in one go so that 2023-03-24- was replaced with nothing and get DSC12345.NEF.
What is the date format you've got at the moment and what would you like the file name to become?
Ian
Edited to add: unfortunately you don't seem to be able to use wildcards.
0 -
The format I have at the moment is: yyyy-dd-mm DSCxxxx
When I need: yyyy-mm-dd DSCxxxxReally not looking forward to all the manual work.
There are tools that could do this from finder super easy, but then there is the issue of broken links.
Eek.0 -
Thinking about it though, I could potentially do it in maybe 50 moves using find/replace… still tedious, but not the end of the world. Be much easier with a truncate though!
0 -
If the naming is this consistent then a "simple" script would make short work of it (if you are Mac)...
0 -
Yeah, I could do it really simply in the Finder without even needing a script TBH.
The problem is then all the links are broken in C1, and I need to locate all the files again. Can that be done in a batch? I assumed not.0 -
Oh. Catalogs.
Well then the only way to do this is script inside CO as it is the gatekeeper to all the database stuff. Probably the best/least complex is to script stripping the DSC name off and storing it in a metadata field. Then use app batch rename function with: [Capture Date YY-MM-DD] [whatever IPTC field] This approach would offer some redundancy if something went wrong, and maintain the links.
0
Iniciar sesión para dejar un comentario.
Comentarios
6 comentarios