Author Topic: File Renaming  (Read 6740 times)

Offline davidkl

  • Member
  • **
  • Posts: 56
    • View Profile
File Renaming
« on: April 30, 2007, 01:07:07 PM »
Hi ,
I have many files with unstandard names (e.g. dk_20061231_1234, and dfk_2006-11-30_0055). I have figured out how to rename the beginning and middle (kleinpix_{year4}-{month0}-{day0}_  ) but I don't know how to grab the original file number from the original file name. So in example 1 my desired result would be: kleinpix_2006-12-31_1234. filetype and example 2 would become
kleinpix_2006-11-31_0055.filetype.

How do I set up that rename string and where does it get stored when I do a save on the string?

Thanks.
David

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 25020
    • View Profile
    • Camera Bits, Inc.
Re: File Renaming
« Reply #1 on: April 30, 2007, 01:14:53 PM »
David,

I have many files with unstandard names (e.g. dk_20061231_1234, and dfk_2006-11-30_0055). I have figured out how to rename the beginning and middle (kleinpix_{year4}-{month0}-{day0}_  ) but I don't know how to grab the original file number from the original file name. So in example 1 my desired result would be: kleinpix_2006-12-31_1234. filetype and example 2 would become
kleinpix_2006-11-31_0055.filetype.

How do I set up that rename string and where does it get stored when I do a save on the string?

I'm not sure what you mean by that last part about where it gets stored, but here is how you would accomplish the renaming you're after:

kleinpix_{year4}-{month0}-{day0}_{fbas:-4,4}

The last part extracts the last four characters of the current filename (without extension.)

HTH,

-Kirk

Offline davidkl

  • Member
  • **
  • Posts: 56
    • View Profile
Re: File Renaming
« Reply #2 on: April 30, 2007, 01:19:28 PM »
on the rename screen , on the bottom left side is a lightnig bolt. when you click it, it says "Save". I assumed it was saving the rename string somewhere. Is that not correct?
Thanks.
David

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 25020
    • View Profile
    • Camera Bits, Inc.
Re: File Renaming
« Reply #3 on: April 30, 2007, 01:53:10 PM »
David,

on the rename screen , on the bottom left side is a lightnig bolt. when you click it, it says "Save". I assumed it was saving the rename string somewhere. Is that not correct?

No, you're right that is correct.  I just misunderstood what you were asking about.

If you want to see the actual files, you can hold down the Shift key (Windows) or Option key (Mac) when choosing the snapshot and the file will be displayed in Windows Explorer or the Finder.

-Kirk

Offline davidkl

  • Member
  • **
  • Posts: 56
    • View Profile
Re: File Renaming
« Reply #4 on: April 30, 2007, 02:08:37 PM »
ok tried that but didn't see the windows file browser ( i do see the name of the file but want to make sure it's where I expect it to be).