Renaming question

Hi,

I asked this in an earlier thread, but at the time DO9 was not out. With the new scripting in place, perhaps there is a way to do what I would like. Unfortunately my knowledge of programming is non existent so I am hoping someone here can assist me.

I do a lot of photo editing with my Canon 1d Mark II. It generates *.cr2 files. I also use a GPS data logger to log GPS points and Breeze Systems Downloader Pro 2.02 to match my pictures with GPS data points. As I shoot in RAW mode, it appends a *.xmp file to each picture. Now and then I use the camera to record a .wav file of something in the picture so I can remember it later on. Such as taking a pic of a band and recording up to 30 seconds of it playing.

Here is where things get complicated. Without the wav in place, renaming the cr2 and xmp is simple. It takes 2 steps (instead of the desired one, but it works).

  1. hide .cr2 files, and rename xmp
  2. hide xmp and rename cr2.

However, with the wav files sitting there, things get complicated because if i do a full rename, then i lose whatever pic the wav was associated with and ill never find it again. so what I am doing now is....

  1. rename cr2 and xmp up until and including the wav file #
  2. rename wav to the last #
  3. process the remaining cr2 and xmp files.

Again, relatively simple except:

  1. If i have multiple wav files in a batch, renaming tends to take a long time and is complicated

Is there a way to write a script that will use the same rename scheme to rename the .cr2 .wav and .xmp all at once? So i do not need to do this bouncing around when renaming? I know Breeze Browser can do it, because I used it in the past, but I rather not have to use 2 different programs when it seems with scripting, DO should now be able to handle something like this.

I understand that the naming convention most likely would need to be hard coded into the script. That is fine, so long as I can easily go into it and change it depending on what scheme i would need.

Any help would be greatly appreciated. :slight_smile:

Could you provide an example, ie the three filenames as generated by your camera, and your expected results from a rename.

GZ4X2854.CR2
GZ4X2854.WAV
GZ4X2854.XMP (generated by breezesystems)
GZ4X2855.CR2
GZ4X2855.WAV
GZ4X2856.CR2
GZ4X2856.WAV
..........

The first 4 characters are constant (and unchangeable. At least until i upgrade my cam to the Mark III). The #s following cycle from 0001-9999

Generally the expected renaming result would be:

2007-07-06_001.CR2
2007-07-06_001.WAV
2007-07-06_001.XMP
2007-07-06_002.CR2
2007-07-06_002.XMP
2007-07-06_003.CR2
2007-07-06_003.XMP
........

right now i have to manually key in the date (Save a preset and just manually change the month and year to the date the pic was taken), because DO cannot read the EXIF data from my raw images.

If possible, if there is a place in the code I can change if i want to use a diff renaming scheme. So instead of using the date as above, I could put in some other scheme that would be great, but if not, the date is generally the most common scheme i use.

Thanks.

In case you missed it, or anyone else finds this thread, Opus now has an option in the Rename dialog called Rename matching filenames as one which takes care of this situation.