The subtitle of this page could be “how to carefully rename 1,000 files.”
In my work with the Center for Railroad Photography and Art I handled a range of digitization and file management project. Each has required it’s own approach and I’ve learned a lot about Apple automation technologies working in a recent aspect of the project. It’s using the Apple tool “Automator” in two different ways. While I have some experience using other automation programs like MacroExpress and other File Renaming tools on a PC this was my first attempt on a Mac. And I think it went pretty well! Here was the problem and the solution I developed to solve this problem.
The Problem

The digital files were named using the actual photographic metadata. While this might seem great, it created two fundamental problems: (1) the digital files were out of order (relative to the original order of the collection) and (2) it did not match the file naming conventions I had established for this collection. So my task was to remedy this problem and (1) put the digital files in the same order as the physical collection and (2) extend the current file naming conventions to this part of the collection.
Organizing the Files
The first step was to organize the files. To do this, I decided to rename each file in some sort of alpha-numeric system. This seemed both easy and tedious. To make it slightly easier, I using the Automator service on the Mac to create a service. On a macro level, I could click a button and make a copy of the file that would then be organized in box order in a separate folder.
Here is this workflow in detail:

- Copy Finder Item to a new folder – This created a second copy of the file that allowed me to explore and experiment without trouble.
- Rename the folder by adding the date/time function “seconds from midnight” to the front of the file name- The “seconds from midnight” function was totally arbitrary but provided a nice, easy way to sort the files.
- Save this as a “service” – Saving this as a service gave me easy access to trigger this automated workflow from anywhere in the finder.
After I established this workflow, I started going though the box. Once I found the digital file that corresponded to my first negative I would trigger this service. Thus, as I progressed through the box of negatives I would create a new folder of digital images in the correct order. Huzzah!
Renaming the Files
The end result of the first automated process was a folder of files in the correct order. However, the file names were terrible. For example:

The leading numbers allow this list to be sorted into the correct order but this file naming convention was a huge mess. However, another automated workflow quickly solved this problem. The steps of this process were:
- Find Finder Items – This step ingested the files I created through the rename service
- Sort Finder Items – Although this step might seem redundant it provided to be critical to get the sorting correct. I simply sorted by name in ascending order to make this workflow work.
- Copy Finder Items – Again, because this was my first time using the Automator I wanted to create back-up copies of my work. I copied the items to yet another folder so that I could sort them.
- Make Sequential – This is the important step! I made them sequential by adding a new name (in this case I replaced the existing name with “Springer_01”) and then by placing a number after the name. I separated this number with an underscore and asked the program to make all numbers three digits long.

The End Result
The result of these two processes created a perfectly organized folder of items that was named according to our established conventions. Doing this renaming work manually (without the Automated workflows) would have been possible but extremely labor intensive and prone to many different errors. This workflow saved hours of work and streamlined the process to prevent errors.
Additionally, this workflow is very general and could easily be applied to other file renaming projects.
Relative to other automation tools, Apple’s Automator is a strong contender. Because it is part of the Mac OS it integrates perfectly and natively with many Apple services and systems and offers a wide range of options. I would definitely seek to use the Automator on all future digital projects in a Mac environment.
