MacOS – Batch rename files based on folder name

applescriptautomatorfindermacos

I'm looking to rename a large number of files based on the folder name in which the file resides. Most folders only contain one file (usually a PDF but could be Word or other files) and I am looking to only change the file base name and not the extension.

Current folders:
Current folder view

Preferred outcome:
Preferred outcome

Note: It's unlikely that there will be two of the same file types in a folder. I'm keen to avoid sequential numbering to all files but if there is a way of adding sequential numbering only in the event of two or more of the same file types then that would be great (although not essential).

I've had a look at Automator but I'm a novice.

Best Answer

I’ve been using the very powerful paid app A Better Finder Rename for many years for complex file and folder renaming needs. Perhaps this app will help. I think it has a free trial period, too.

You can find it here.

Disclaimer: I’m an extremely satisfied user. No financial or other connection to PublicSpace.net.