How To Use Automator To Batch Rename Images on Mac

Wez Pyke 05-08-2009

I have had this problem many times in the past – I am developing a website for a client and when I ask them to send me images, for something such as a gallery, they’ll send me lots of images and the name for each image wont have any meaning — something along the lines of IMG_0839 or CIMG_1029.


It’s nice to at least have the image files named like image1, image2, image3, etc so that you can at least order them. Luckily for us Mac OS X users, we have a nice little tool that Apple has developed called Automator which makes such a batch rename task  a breeze.

Open up Automator by going to your Applications folder and then double click Automator to open it up. Alternatively you could use Spotlight or Quicksilver to open up the Application.

When Automator has loaded up you will be presented with a window similar to the one pictured below.


From here, select Custom and ht the Choose button to begin creating your workflow.


First, search for Get Specified Finder Items or click Files & Folders under Library and then select the action from there. When you have found it, drag and drop it to the right to add it to the workflow. Leave the field empty for now.

Next, search for rename in the search field at the top of the Application.


When you have found it, drag and drop it to the workflow. An alert box will pop up asking you if you would like to add a ‘Copy Finder Items‘ action to the workflow. Click on Add to add the action. All it does is duplicate the items to be batch renamed, serving as a backup in case things go wrong and leaving the original files intact. Choose a suitable destination for it — a new folder on the desktop should be perfect.


How To Use Automator To Batch Rename Images on Mac copy finder items action

Your workflow should look like the one below.


There is one last thing I am going to change and that is within Rename Finder Items. I am going to change Add Date or Time to Make Sequential. Also change Add number to to new name, set this to whatever you like, I have named it image. Make sure that you tick Make all number 2 digits long so that when you reorder the images the ones that are image_2 will come before image_11.



We are all done.

Save the workflow as a batch rename application by going to the File menu and choose ‘Save As…’ Enter a name for it, like “Rename to Sequential” and select ‘Application’ for the file format and save it somewhere obvious, the Desktop, perhaps. To rename your images, simpley drag them over the icon and release. Automator will spring into life, copy and bulk rename your images, and save them to the destination you specified in the workflow.

If it is successful it should have copied all the images and renamed them image-1, image-2, image-3 and so on in the folder that you chose.


I went from this :


to this with a nice, simple workflow.


The advantage of saving the workflow as a batch rename application is you can use it over and over again. If you need to change the settings in the workflow, open the “application” in Automator.

There is a bulk rename utility for Mac OS X called NameChanger Batch Rename Your Files Easily - Mac Style (Mac Only) Read More that is similar to what we have just done. But its nice to know that there are alternatives, for example if you don’t have an internet connection and can’t download NameChanger.

This has been a workflow that has came in useful for me on a number of occasions. Share your workflows with us and our readers in the comments below.

Affiliate Disclosure: By buying the products we recommend, you help keep the site alive. Read more.

Whatsapp Pinterest

Leave a Reply

Your email address will not be published. Required fields are marked *

  1. Susan Bray
    June 1, 2015 at 3:53 pm

    I am looking at Automator for the first time. In the workflow options for photos the descriptions still relate to iPhoto. I have upgraded to Photos, so this would not work, and further, I'm afraid it would put a spanner in the works. Also I'm looking for how to make a bulk addition to the description to a photo. Or a tag. Basically I have holiday photos from a friend. And my own. these are in 2 different albums. i want to select photos from both and keep only 1 album but be able to distinguish who took which photo. Is there an easy way using Automator or any other apple app? Has anyone any suggestions?

  2. Jesse
    May 1, 2015 at 3:20 pm

    A strange thing happened where it copied the files into the specified copy/backup folder, but with the new sequential name -- not the original name -- and it didn't rename the originals. It's as though it did the 3rd step before the 2nd, and didn't bother with touching the originals.

    Another quirk is that the 3rd step doesn't have the header "Rename Finder Items". It takes the name from the drop-down list; in this case, "Make Sequential". That makes me wonder if it's not performing the 'rename' action, only setting the copied files to be sequential.

    I'm on OS 10.7.5, so perhaps the workflow parameters are different somehow, but I'm suspicious that the 'rename' action is faulty. I'll play with it and see if I can get it working as expected.

  3. Richard
    March 18, 2015 at 10:49 am

    Hi, I've been using this myself for a while and it is mostly awesome, however, I'm getting a problem where after it is complete, the files in the finder begin to rename themselves, as in image_327-2.
    This is an issue as the images are pages and it then puts them out of order, and if I try and rename, it then renames the next image!
    Any advice massively appreciated!

  4. Norman Fellows
    January 24, 2015 at 10:59 am

    Great - thanks! I've used this before on my MacBook Pro but wanted to set it up on my iMac and couldn't remember what to do. Thank you for the refresher - it works perfectly!

  5. Angel Navarrete
    January 3, 2010 at 2:46 pm

    Thank you so much for posting a tutorial on how to change file names within a folder. It's so much easier to have a step by step process with images, to see what's going on! I am curious though, will this work for changing files located within folders? I know it would and does but I'm wondering if there's a way to set up automator so that when I drop files into a folder, the file names are automatically changed when a file is dropped into it. How would I do this?

    Also, if I have a folder that already has like, 100 images that are renamed accordingly; is there a way the automator can just pick up where the last (sequential) file name change took place? If so, how do I do that?

    Much thanks for helping me understand automator!