Skip to main content
Participating Frequently
March 8, 2019
Answered

Using Batch Rename to change filenames to Title Case

  • March 8, 2019
  • 3 replies
  • 4002 views

Hi there,

Can anyone help me with a script to change filenames from:

SURNAME Firstname.psd

to

Surname Firstname.psd

Thanks for any help.

Correct answer Stephen Marsh

Unless you need to incorporate the rename into another script, you don’t need scripting to do this, the standard Batch Rename tool is more than capable!

The following is just the first method that I came up with… I am hoping to come up with a more elegant solution.

I tried to make it robust so that it would work with any combination of uppercase/lowercase patterns.

3 replies

Stephen Marsh
Community Expert
Community Expert
December 26, 2023
Stephen_LAuthor
Participating Frequently
March 11, 2019

Thanks Stephen. This worked perfectly. I've since discovered I can use Automator to achieve the same result, but it's nice to be able to stay in Bridge. Although I still can't believe they don't include this as an option. Thanks again!

Stephen Marsh
Community Expert
Community Expert
March 11, 2019

Agreed, it should be a standard option along with original/upper/lowercase. Sadly when it comes to Bridge, there are many things that are hard to believe.

Stephen Marsh
Community Expert
Stephen MarshCommunity ExpertCorrect answer
Community Expert
March 8, 2019

Unless you need to incorporate the rename into another script, you don’t need scripting to do this, the standard Batch Rename tool is more than capable!

The following is just the first method that I came up with… I am hoping to come up with a more elegant solution.

I tried to make it robust so that it would work with any combination of uppercase/lowercase patterns.

Known Participant
April 16, 2025

please can you share the expressions as text therefore i can copy and paste this? 

 

Stephen Marsh
Community Expert
Community Expert
April 17, 2025

Batch Rename regular expressions, thanks. 
I'm trying to replicate this in bridge. 


@martinj54220288 

 

Scripts are more flexible and better suited to the task, so my preference is the Bridge script previously linked. I created the Batch Rename regex before creating the script.

 

The following example is only for 2 words (originally for simple name case), notice in the screenshot how the third word isn't in Title Case. You would need to change the regex for 3 or more words, and it would become even more unwieldy.

 

Current Filename Find:

 

(^\w)(?:.+?\s)(\w)(?:.+?$)

 

Current Filename Replace

 

$1$2

 

Intermediate String Substitution Find:

 

(^\w)(\w)(?:\w)(\w+)(?: )(\w)

 

Intermediate String Substitution Replace:

 

$1$3 $2