PDA

View Full Version : how to make new file names in reverse order?


Daneinbalto
08-21-2009, 08:18
I shoot color film and have my negatives scanned at the lab. Unfortunately, they scan the negatives in the direction from frame 36 to frame 1, so when they on put them on the CD, the files are numbered in reverse chronological order. The file names are very long, e.g. 1309857801.jpg, 1309857802.jpg, etc.

I would like to rename the files so that their numbering is in correct chronological order. Of course, I could do this manually, but is there an easy automated way of doing this?

I'm using Photoshop CS2 on a Windows XP platform. Although I don't think it will be of use in this case, I mention that I also have Canon DPP loaded.

ferider
08-21-2009, 08:24
Get tcl, cygwin, etc. and script it. For example with cygwin:

#!/bin/sh
j=36
mkdir -p new_files
for i in *.jpg
do
cp $i new_files/$j.jpg
j=`echo "$j - 1" | bc`
done

:)

Mcary
08-21-2009, 08:32
The following may work
1. Copy files to Folder on HD
2 Go to folder via Bridge
3 Choose Sort File Name Descending
4 Select all and rename.

flip
08-21-2009, 18:27
Get tcl, cygwin, etc. and script it.
:)

That's so funny. I saw the thread as was about to restrain myself from writing a line of Perl mapping.

Keith
08-21-2009, 18:52
ACDSee Pro has a very easy to use interface and renaming/renumbering files in batch processing is a breeze.

Daneinbalto
08-24-2009, 09:48
The approach involving Adobe Bridge suggested by Mcary was quick and worked well.

Thanks to all.