Skip to main content
Legend
November 22, 2017
Answered

Remove extension with Batch Rename

  • November 22, 2017
  • 3 replies
  • 2965 views

How do I use Batch Rename to remove file extensions? Yes, I'm really sure that I want to do this. The closest I can get is the filename with a leading space.

This topic has been closed for replies.
Correct answer Stephen Marsh

I don’t have the settings handy, they are on my machine at work. And yes, I REALLY REALLY REALLY know EXACTLY what I need to do and why. No, a script won’t work for me. Now please, either provide a specific answer or don’t reply with something off-topic.

I need to use Batch Rename to JUST remove file extensions. Not another tool or script, and not anything else.


And what if Bridge’s Batch Rename tool has been specifically designed to not allow you to do what you want? I wish you all the best in your quest to make Bridge’s Batch Rename tool work as you wish, please post back the answer once you know it.

3 replies

wckdtall
Inspiring
December 3, 2017

What are you trying to accomplish by removing the extensions from the files? Long term this will lead to file incompatibility issues. Mac or PC? Both offer the ability to hide the extension in the OS if it's for aesthetics. On mac, even trying to use the features in batch rename that simply show file name or extension, only the extension option works and regex will not touch the extension. If you're on a mac, they introduced batch rename in finder, which can nuke the extension for you.

Legend
November 30, 2017

Thanks but I'm looking for an answer. I know EXACTLY what I need to do and why I am using Bridge.

SuperMerlin
Inspiring
November 30, 2017

A Bridge script can do this...

#target bridge  

if( BridgeTalk.appName == "bridge" ) { 

removeEXT = MenuElement.create( "command", "Remove Extensions", "at the end of tools");

}

removeEXT.onSelect = function () {

var thumbs = app.document.selections;

for(var a in thumbs){

var Name = decodeURI(thumbs.spec.name).replace(/\.[^\.]+$/, '');

thumbs.spec.rename(Name);

    }

};

Stephen Marsh
Community Expert
Community Expert
November 23, 2017

I don’t think that Bridge is the right tool for this task.