Author Topic: Renaming files upon ingest  (Read 3706 times)

Offline ahmedjohnson

  • Newcomer
  • *
  • Posts: 2
    • View Profile
Renaming files upon ingest
« on: September 21, 2010, 03:37:42 AM »
Hi gang,

A straightforward one this morning, but I am a novice with PM so any help welcomed.

Trying to rename files while ingesting from card. In this example I  would like to rename it as follows:-

Original file: - CJS_4521.jpg
Renamed:CJS_USA_TUR_12092010_[file number].jpg

Can anyone can me a quick step by step how I can modify the rename string etc. to acheive this? I know you can modify the sequence variable to start from 0001 but I would like to keep the original file number from the camera.

Any help welcomed.

Cheers


Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 24764
    • View Profile
    • Camera Bits, Inc.
Re: Renaming files upon ingest
« Reply #1 on: September 21, 2010, 08:02:53 AM »
Trying to rename files while ingesting from card. In this example I  would like to rename it as follows:-

Original file: - CJS_4521.jpg
Renamed:CJS_USA_TUR_12092010_[file number].jpg

Can anyone can me a quick step by step how I can modify the rename string etc. to acheive this? I know you can modify the sequence variable to start from 0001 but I would like to keep the original file number from the camera.

Use this as your renaming string:

{filenamebase:0,3}_USA_TUR_12092010_{filenamebase:-4}

It extracts the first three characters of your original filename, adds on your unchanging text in the middle, and appends the last four characters of the original filename.

HTH,

-Kirk

Offline ahmedjohnson

  • Newcomer
  • *
  • Posts: 2
    • View Profile
Re: Renaming files upon ingest
« Reply #2 on: September 22, 2010, 01:57:22 AM »
Hi Kirk,

This is perfect. Many thanks for your help.