Author Topic: batch renaming using arbitrary sections of the original name  (Read 3979 times)

Offline gendem

  • Newcomer
  • *
  • Posts: 3
    • View Profile
batch renaming using arbitrary sections of the original name
« on: December 30, 2007, 02:37:36 PM »
Lets say I have a bunch of files named like this:

aaa-bbbb-ccc.jpg

I would like to do a batch rename such that the original bbbb-ccc part is retained, and a sequence number replaces the aaa part.

In BreezeBrowser, this would be

%n-%[5-12]

In PM it would start out as

{seqn}

but then I get stuck.  Is there an equivalent in PhotoMechanic?

...Mike

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 23422
    • View Profile
    • Camera Bits, Inc.
Re: batch renaming using arbitrary sections of the original name
« Reply #1 on: December 30, 2007, 09:18:02 PM »
Mike,

Lets say I have a bunch of files named like this:

aaa-bbbb-ccc.jpg

I would like to do a batch rename such that the original bbbb-ccc part is retained, and a sequence number replaces the aaa part.

In BreezeBrowser, this would be

%n-%[5-12]

In PM it would start out as

{seqn}

but then I get stuck.  Is there an equivalent in PhotoMechanic?

Sure.  It would be:

{seqn}{filenamebase:4}

You'll need a recent version of Photo Mechanic in order to do the sub-string extraction (the feature came out in the 4.5.x version.)

-Kirk