by ʇolɐǝz ǝɥʇ qoq

Submit your Photo
Hall of Fame

Please participate in Meta
and help us grow.

Photography Stack Exchange is a question and answer site for professional, enthusiast and amateur photographers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to remane a group of photo of my holidays. For example, I have:


And I want to obtain:


Where Malta is the name I choose and (date) is the date of the photo. In addition, I want to add a number that rise with time of the day (a photo taken at 9.00 is 001 and a photo taken at 9.01 is 002). I want to fill the number with 0 in order to obtain always the same name length (for example, if I have 1500 photo the first is 0001, if I have only 56 photos the first is 01). The number will restart each day.

Is there any free software (or command line tool) that can do that? I use Mac OS X Lion.

Ps: I can use the hour when the photo is taken instead of numbers.

EDIT: I used Apple's Automator but I had to choose between data or number. It is impossible to use data and hour.

share|improve this question
Someone really needs to write a PhotoSE blog detailing how to use some of the awesome command line tools that people offer up as answers to these types of questions. Any takers!? ;-) – jrista Sep 16 '12 at 4:20
I could write something up for people that use python. However, on this site that might only be a few people... – Onlyjus Sep 16 '12 at 12:56
Did you search for the renaming questions that already exist? Maybe add to them instead of starting a new one. – Eric Sep 16 '12 at 14:24
@Eric I searched but I didn't found a method to do what I need. – R. M. Sep 17 '12 at 10:53
@NitinKumar, I started one over here – Onlyjus Sep 23 '12 at 20:35
up vote 2 down vote accepted

Before you start... backup your files

Since you're using a Mac - I would try


Writing "FileName" and "Directory" tags By writing the FileName and/or Directory tags, ExifTool can be used to rename and/or move images into directories according to any information contained in the image. The most common use of this feature is to organize images by date/time, but any other tag value may also be used.

share|improve this answer

As you're using a Mac, the following does not apply, but it may help Windows users.

Irfanview can do batch rename/conversion. For your example I'd use a name pattern like:


That will change the names to this:




share|improve this answer

You were going to get the Apple Aperture, right? Aperture can make that easy for you.

I can't recommend any free program because I don't know anything about them. but you can search for "free photo batch rename tool" or similar to learn about this.

Also see this:

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.