Author Topic: Filename String Substitution  (Read 3890 times)

Offline qimis

  • Newcomer
  • *
  • Posts: 2
    • View Profile
Filename String Substitution
« on: September 01, 2015, 09:23:41 PM »
I've been using Photo Mechanic for a couple years now, it's a great software and FAST! Especially when selecting my images. However, I keep going back and forth when importing photos from my camera to Adobe Bridge for a simpler renaming. I was wondering if someone can help me with the string substitutions in renaming files.

Normally the original filename straight off my camera is: LA1X7834.JPG (as the last 4 digits is continuously generated from the camera). I always change my filename to shootdate-cameracode-jobname- keeping the last 4 digits, such as: 20150901-LA1CorporateFactory-7834.JPG. Note: LA1X is to be LA1, for my first camera body and LA1_ to be LA2, as for my second camera body. Was wondering if someone can help me with the file naming variables?

Thanks in advance! :)

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 24731
    • View Profile
    • Camera Bits, Inc.
Re: Filename String Substitution
« Reply #1 on: September 01, 2015, 10:15:15 PM »
This should produce the rename that you're wanting:

{datesort}-{filenamebase:0,3}CorporateFactory-{filenamebase:-4}

You can read more about variables and sub-string extraction here:

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

-Kirk

Offline qimis

  • Newcomer
  • *
  • Posts: 2
    • View Profile
Re: Filename String Substitution
« Reply #2 on: September 01, 2015, 11:37:46 PM »
Thank you! Much appreciated