Automate Image File Renaming on MacBook: A Step-by-Step Guide for Photographers

Josh Otwell
5 min readJul 30, 2024

How to use a simple Bash shell script to rename a set of image files on a MacBook.

Automation saves time.

If you are anything like me, there are times when you want to rename or add some form of naming to a specific set of images.

Image by Gerd Altmann from Pixabay

Perhaps you want to append “Johnson Portraits” (or similar) along with the current date to a set of pictures.

Using Bash shell scripting on your MacBook is a great option to automate this type of time-consuming task.

You don’t have to be that technical to pull it off either.

Follow along!

Note: I am using a MacBook M2 Air for the examples in this article.

Determine the folder location of the images you want to rename.

There are a few ways you can do this…

Use the cd (change directory) command in the terminal.

To open the terminal on your MacBook, press Command + Space, type in “Terminal”, and press Enter.

Here is an example cd command:

cd /path/to/your/image_folder

--

--

Josh Otwell
Josh Otwell

Written by Josh Otwell

SQL/PHP | Photography | Technical Consultant. Sign-up for my free developer newsletter, OpenLampTech, here: openlamptech.substack.com

No responses yet