Author Topic: Variable for first 3 characters of a filename?  (Read 3039 times)

Offline JimQ

  • Newcomer
  • *
  • Posts: 2
    • View Profile
Variable for first 3 characters of a filename?
« on: April 19, 2008, 09:16:05 PM »
I developed my file naming scheme using Downloader Pro and would like to continue using it with PM,  but I'm having difficulty finding the proper variable to do what I want.

My files look look like this: 080419_1j_1234.jpg
 
{YYMMDD}{first 3 characters of image name}{_}{last 4 digits of image number}

The middle characters allow us to differentiate camera bodies.

Example file from camera: _1JQ1234.jpg

I got close with these, but can't figure out how to get the first 3 characters in there.
{year2}{month0}{day0}  _{frame4}

Is this doable?

Thanks..... Jim



Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 24817
    • View Profile
    • Camera Bits, Inc.
Re: Variable for first 3 characters of a filename?
« Reply #1 on: April 19, 2008, 10:29:56 PM »
Jim,

I developed my file naming scheme using Downloader Pro and would like to continue using it with PM,  but I'm having difficulty finding the proper variable to do what I want.

My files look look like this: 080419_1j_1234.jpg
 
{YYMMDD}{first 3 characters of image name}{_}{last 4 digits of image number}

The middle characters allow us to differentiate camera bodies.

Example file from camera: _1JQ1234.jpg

I got close with these, but can't figure out how to get the first 3 characters in there.
{year2}{month0}{day0}  _{frame4}

Is this doable?

Yes.  Use the following:

{year2}{month0}{day0}{filenamebase:0,3}_{frame4}

HTH,

-Kirk



Offline JimQ

  • Newcomer
  • *
  • Posts: 2
    • View Profile
Re: Variable for first 3 characters of a filename?
« Reply #2 on: April 20, 2008, 12:15:31 AM »
That did it!!  Thanks for the quick reply.

Jim