Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Piddy12

macrumors newbie
Original poster
Apr 3, 2020
12
3
I have hundreds of files, which I wish to rename. These filenames all have a 7 digit number at the beginning, which is a unique number for each file, then follow by a space and then the rest of the filename which I wish to keep.
Here is a fictitious but accurate example;

7176160 Trial 123.mp4
4053321 Trial 124.mp4

I simply want to remove the number at the start of each filename and the space after it for all the files and keep the rest of the name (Trial 123 etc).

Can anyone suggest how to achieve this?
The rename option in the finder can only do same name search & replace for all files so its not useful for my application.
 

ssls6

macrumors 6502a
Feb 7, 2013
593
185
The way I do something like this is with a script file or reg expressions from the terminal. I don't do it often enough to quote what you need from memory but google around on batch renaming from the terminal and you get what you need.

example: stackoverflow
 

Nigel Goodman

macrumors regular
Jun 29, 2017
171
84
UK
Good software so far. How has it been for you? Any issues?

No issues at all. It has really good 'scripting' abilities (not sure if that is the correct word) to do multiple changes to time names. It is very comprehensive and regularly updated. I do recommend it.
 
  • Like
Reactions: AppleUser8

AppleUser8

macrumors newbie
Jun 20, 2020
3
1
No issues at all. It has really good 'scripting' abilities (not sure if that is the correct word) to do multiple changes to time names. It is very comprehensive and regularly updated. I do recommend it.
Thanks
One feature its missing - a very important one is when you command select files and drop them into the interface... it doesn't sort them in the order you selected them on mac os. I often have misc files out of order and want to command select - and then rename in that particular order. On mac os you can rename 1 - 10 as an example based on the command select or shift select order you choose the files. Does that make sense?
 

mckenzzzzie

macrumors newbie
Jun 22, 2020
7
1
Name Mangler can do this in a couple of different ways: remove first 8 characters, remove any sequence of seven digits, etc. Great software. I believe the trial version lets you run it up to 20 times (on batches of files of any size). If you can speak in regular expressions, you can do even crazier things — I am currently renaming batches of files that look like "Movie Title (French) (2011).m4v" to "Movie Title (2011) (French).m4v".
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.