Author Topic: Renaming batches of images maintaining their original sequence number?  (Read 2295 times)

Offline Glenna

  • Newcomer
  • *
  • Posts: 7
    • View Profile
Hello!

I'm working with a set of jpgs that has already been removed from a wider raw set of images.

They are currently named things like:

20131104_Kenya_073
20131104_Kenya_114
20131104_Kenya_257
etc

I'd like to RENAME them
Kenya_20131104_073
Kenya_20131104_114
Kenya_20131104_257
etc

But, when I set a sequence variable, I don't know how to avoid just making them 1, 2, 3... ie:
Kenya_20131104_01
Kenya_20131104_02
Kenya_20131104_03

Is there a way to rename and maintain the original sequence number? So I can keep the 073,114, 257, etc without making it 1, 2, 3?

I'm using:
Photomechanic 5.0
Mac OSX 10.6.8

Thanks!
Glenna

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 24767
    • View Profile
    • Camera Bits, Inc.
Re: Renaming batches of images maintaining their original sequence number?
« Reply #1 on: December 08, 2013, 10:14:13 AM »
Glenna,

I'm working with a set of jpgs that has already been removed from a wider raw set of images.

They are currently named things like:

20131104_Kenya_073
20131104_Kenya_114
20131104_Kenya_257
etc

I'd like to RENAME them
Kenya_20131104_073
Kenya_20131104_114
Kenya_20131104_257
etc

But, when I set a sequence variable, I don't know how to avoid just making them 1, 2, 3... ie:
Kenya_20131104_01
Kenya_20131104_02
Kenya_20131104_03

Is there a way to rename and maintain the original sequence number? So I can keep the 073,114, 257, etc without making it 1, 2, 3?

Yes, but don't use the sequence variable.  Rename like this:

Kenya_20131104_{filenamebase:-3}

This will take the last three letters/numbers of the current name and append them onto "Kenya_20131104_".  This feature is called Variables Substring Extraction.  It is explained more fully here:

http://wiki.camerabits.com/en/index.php?title=User_Manual_Flat_View#Variable_Substring_Extraction

HTH,

-Kirk

Offline Glenna

  • Newcomer
  • *
  • Posts: 7
    • View Profile
Re: Renaming batches of images maintaining their original sequence number?
« Reply #2 on: December 08, 2013, 11:41:54 AM »
Thanks Kirk!! That works very well.