Author Topic: Help re-naming files  (Read 3323 times)

Offline Eric

  • Full Member
  • ***
  • Posts: 246
    • View Profile
Help re-naming files
« on: November 25, 2008, 08:48:59 AM »
Kirk is there a way for me to rename 20081122-1102G7-lw-grls-Abington B vs Bridgewater B-0244.jpg  into   20081122-1102G7-lw-bys-Abington B vs Bridgewater B-0244.jpg  ?

I need to keep the numbers the way that they are.

Thanks

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 24278
    • View Profile
    • Camera Bits, Inc.
Re: Help re-naming files
« Reply #1 on: November 25, 2008, 05:31:22 PM »
Eric,

Kirk is there a way for me to rename 20081122-1102G7-lw-grls-Abington B vs Bridgewater B-0244.jpg  into   20081122-1102G7-lw-bys-Abington B vs Bridgewater B-0244.jpg  ?

I need to keep the numbers the way that they are.

Does the number of digits ever vary, or are there always the same number of digits in each set of numbers?

-Kirk

Offline Eric

  • Full Member
  • ***
  • Posts: 246
    • View Profile
Re: Help re-naming files
« Reply #2 on: November 25, 2008, 05:43:56 PM »
everything is constant only the last 4 numbers change

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 24278
    • View Profile
    • Camera Bits, Inc.
Re: Help re-naming files
« Reply #3 on: November 25, 2008, 08:20:48 PM »
everything is constant only the last 4 numbers change

But do the number of digits change or are there always four letters?

-Kirk

Offline Eric

  • Full Member
  • ***
  • Posts: 246
    • View Profile
Re: Help re-naming files
« Reply #4 on: November 26, 2008, 10:55:44 AM »
20081122-1102G7-lw-grls-Abington B vs Bridgewater B-0245.jpg
20081122-1102G7-lw-grls-Abington B vs Bridgewater B-0246.jpg
20081122-1102G7-lw-grls-Abington B vs Bridgewater B-0247.jpg
20081122-1102G7-lw-grls-Abington B vs Bridgewater B-0248.jpg
20081122-1102G7-lw-grls-Abington B vs Bridgewater B-0249.jpg
20081122-1102G7-lw-grls-Abington B vs Bridgewater B-0250.jpg

I just want to change the grls to bys

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 24278
    • View Profile
    • Camera Bits, Inc.
Re: Help re-naming files
« Reply #5 on: November 26, 2008, 01:27:53 PM »
Eric,

20081122-1102G7-lw-grls-Abington B vs Bridgewater B-0245.jpg
20081122-1102G7-lw-grls-Abington B vs Bridgewater B-0246.jpg
20081122-1102G7-lw-grls-Abington B vs Bridgewater B-0247.jpg
20081122-1102G7-lw-grls-Abington B vs Bridgewater B-0248.jpg
20081122-1102G7-lw-grls-Abington B vs Bridgewater B-0249.jpg
20081122-1102G7-lw-grls-Abington B vs Bridgewater B-0250.jpg

I just want to change the grls to bys

The following rename string should work for you:

{filenamebase:1,19}bys{filenamebase:-33}

If the preview of the names doesn't appear right, adjust the count or index of the substring extraction parameters until you get what you're looking for.

HTH,

-Kirk

Offline Thomas S. England

  • Newcomer
  • *
  • Posts: 5
    • View Profile
    • Online Portfolio
Re: Help re-naming files
« Reply #6 on: November 29, 2008, 03:32:57 AM »
You don't indicate if you are using a Mac, but if you are, every Mac comes with a finder script entitled "Replace Text in Item Names". You select the folder of images, run the script and it will ask you which part of the filenames you want to replace & what to put in that place. Very fast, very simple and I have found it very useful many times.
Thomas S. England
Decatur GA 30030