Automator is a powerful application that can automate many processes on your Mac. This brief resource is intended to demonstrate how you can rename a large number of files in a single folder, by writing the name of the folder into the file, and appending a counter at the end of the file name, incremented from '001'.
Here is an example of how that could look once completed:
To start, open the application 'Automator' on your Mac.
Once open, click 'File' and then 'New'.
When the program opens, a dialog box will appear. Click 'Workflow' and then 'Choose'.
Next, on the left side of the application window, select 'Files & Folders', and then double-click 'Get Specified Finder Items'.
After that, double-click 'Rename Finder Items'.
Another dialogue box will appear after this. Decide if you would like Finder to Add a 'Copy Finder Items' action that will retain a copy of your original files. For this demonstration, we are selecting 'Don't Add'.
This is how the application window will look once you double-click 'Rename Finder Items', and then 'Don't Add'.
For the purpose of this tutorial, the type of image files that we will be renaming are by an artist named 'Timothy Cole', and they are 'Prints' of the original medium which is 'Wood Engraving'.
We want all three of these pieces of information to be contained in every image file that we have (11 in all), so we are going to set our actions so that we have renamed files that appear as:
'TimothyCole_Print_WoodEngraving_001.jpg', 'TimothyCole_Print_WoodEngraving_002.jpg',
and so on throughout the remaining images.
(Again, you can feel free to customize your naming conventions to suit your needs and preferences.)
To initiate this formula for renaming our files, click on the drop-down menu that says 'Add Date or Time' and select 'Make Sequential'.
Next select the 'new name' radio button, and copy & paste in the name of your folder containing the images, which we have already named as 'TimothyCole_Print_WoodEngraving'.
After this, we need to set the manner in which the files will be incremented. Since you may be renaming a large number of files, we want to make all numbers '3' digits long, as seen here:
As well, to match the naming structure above ('TimothyCole_Print_WoodEngraving_001.jpg'), we need to have the incremented numbers separated by an 'underscore' (rather than a 'dash'), so select 'underscore' in the drop-down menu named 'separated by'.
Once you've done that, you can see the example filename in the dialogue box.
Now we just need to add the files into the top action item box, named 'Get Specified Finder Items', like so:
Once all the files have been successfully added to the 'Get Specified Finder Items' dialogue box, we are ready to 'Run' the automation.
Select 'Run' in the top right of the Automator application window, and the program will initiate.
And then we can now go back to our 'TimothyCole_Print_WoodEngraving' folder and see that our files have now been correctly renamed. Success!!