Saturday, March 22, 2008

Difference Of Triton And Posiedon

. Automatically renaming tool

As you know, after taking photos for a whole day, we have to face to the hard task of classifying them. The most commonly task is renaming them accordingly people involved or whatever criteria.
Then, we start in a situation like this:
  • If we want to rename them, probably we'll have to write the same name a lot of times. Ex.: <%d> A_Place_1.jpg
  • A_Place_2.jpg

A_Place_3.jpg
...

Second_place_34.jpg
This is a hard task. It would be very simple with an automatically renamer tool. This way, I've developed this tool.
It is a simple Python application that renames all files between two ones in alphabetical order.
Example:
  • P1010085.JPG
  • P1010089.JPG
  • P1010093.JPG
  • P1010097.JPG
  • P1010101.JPG
P1010105.JPG

P1010109.JPG


P1010113.JPG
    P1010117.JPG
  • P1010121.JPG
  • The emphatic ones will be rename:
  • renamer -s P1010093.JPG -e P1010113.JPG -n MyPlace
  • -s [start]*
  • -e [end]*
  • -n [new name]*
  • -c [initial counter value]


Fields with [*] are mandatory. Anyway, if you omit any of them, application will question you:
    Above example will result:
  • P1010085.JPG
  • P1010089.JPG
  • MyPlace_0.JPG
  • MyPlace_1.JPG
    MyPlace_2.JPG
MyPlace_3.JPG

MyPlace_4.JPG MyPlace_5
.JPG
  • P1010117.JPG
  • P1010121.JPG
  • Source code:
  • [Download]
  • [View]