Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > macOS > Can I Mass-Rename with OSX?

Can I Mass-Rename with OSX?
Thread Tools
Koralatov
Senior User
Join Date: Jun 2007
Location: Aberdeen, UK
Status: Offline
Reply With Quote
Jun 25, 2007, 05:24 PM
 
I have an external hard-drive with about eight-hundred video files, all of which share the same basic naming-scheme ("Season x, Episode xx - "Episode Name".avi"). I was wondering if there was a way to mass-rename the all, somewhat akin to a search and replace? I could do it one file at a time, but the thought of it is too great.

Any ideas on how to do it all at once?
     
JKT
Professional Poster
Join Date: Jan 2002
Location: London, UK
Status: Offline
Reply With Quote
Jun 25, 2007, 05:40 PM
 
Automator:


You'll have to traverse any folder hierarchy you have but far easier to select all the files in one folder and rename them all at once, then the files in the next folder you open, etc., than to do it one at a time.
     
allblue
Forum Regular
Join Date: May 2005
Location: Somewhere they can't find me
Status: Offline
Reply With Quote
Jun 25, 2007, 05:55 PM
 
I've never tried to rename 800 files using File Sequencer (freeware), but it has always worked perfectly for me. Get it here:

File Sequencer 1.0 - Mac OS X - VersionTracker
"Believe nothing, no matter where you heard it, or who has said it, not even if I have said it, unless it agrees with your own reason and your own common sense."

Buddha
     
besson3c
Clinically Insane
Join Date: Mar 2001
Location: yes
Status: Offline
Reply With Quote
Jun 25, 2007, 06:33 PM
 
If you need something more, you can also do this via a shell script.
     
- - e r i k - -
Posting Junkie
Join Date: May 2001
Location: Brisbane, Australia
Status: Offline
Reply With Quote
Jun 26, 2007, 10:10 AM
 
This is the one I use, but to each his own:

Renamer4Mac 2.8 - Mac OS X - VersionTracker

[ fb ] [ flickr ] [] [scl] [ last ] [ plaxo ]
     
Koralatov  (op)
Senior User
Join Date: Jun 2007
Location: Aberdeen, UK
Status: Offline
Reply With Quote
Jun 27, 2007, 03:33 PM
 
I tried JKT's method, and it worked perfectly for me. Many thanks for all your advice everyone. Next time I have this problem (hopefully there won't be one--I intend to name my files better from now on), I might try one of the other solutions suggested.

Again, thanks for the help everyone!
     
peeb
Addicted to MacNN
Join Date: Mar 2006
Status: Offline
Reply With Quote
Jun 27, 2007, 04:09 PM
 
Originally Posted by JKT View Post
Automator:


You'll have to traverse any folder hierarchy you have but far easier to select all the files in one folder and rename them all at once, then the files in the next folder you open, etc., than to do it one at a time.
That looks cool - how do I take a bunch of weirdly (arbitrary) named files and rename them file1, file2 etc?
     
besson3c
Clinically Insane
Join Date: Mar 2001
Location: yes
Status: Offline
Reply With Quote
Jun 27, 2007, 04:15 PM
 
Originally Posted by peeb View Post
That looks cool - how do I take a bunch of weirdly (arbitrary) named files and rename them file1, file2 etc?

If there is no way to do this using Automater, I can help you do this through your Terminal.
     
peeb
Addicted to MacNN
Join Date: Mar 2006
Status: Offline
Reply With Quote
Jun 27, 2007, 04:30 PM
 
Thank you Besson - I was just curious to know whether there was a simple way, and don't actually need to do it right now, so I won't trouble you - appreciate the offer though.
     
JKT
Professional Poster
Join Date: Jan 2002
Location: London, UK
Status: Offline
Reply With Quote
Jun 27, 2007, 04:47 PM
 
Originally Posted by besson3c View Post
If there is no way to do this using Automater, I can help you do this through your Terminal.
Haven't tested it, but this seems as though it would do it:

     
peeb
Addicted to MacNN
Join Date: Mar 2006
Status: Offline
Reply With Quote
Jun 27, 2007, 04:50 PM
 
Wehey - that's what I want - thanks!
     
itai195
Addicted to MacNN
Join Date: May 2001
Location: Cupertino, CA
Status: Offline
Reply With Quote
Jun 27, 2007, 04:52 PM
 
Originally Posted by besson3c View Post
If there is no way to do this using Automater, I can help you do this through your Terminal.
Since Automator can run shell scripts, you can do that in Automator too
     
MacLover08
Fresh-Faced Recruit
Join Date: Aug 2006
Status: Offline
Reply With Quote
Jun 27, 2007, 05:03 PM
 
if i may ask, how would you go about accomplishing this is the terminal?
     
besson3c
Clinically Insane
Join Date: Mar 2001
Location: yes
Status: Offline
Reply With Quote
Jun 27, 2007, 06:08 PM
 
Originally Posted by MacLover08 View Post
if i may ask, how would you go about accomplishing this is the terminal?
Something like this:

count = 1;for i in /path/name/*; do mv $i file_$count; count++; done


Haven't tested it, but I'm sure it's pretty close to functional if not already so.
     
tintub
Mac Elite
Join Date: Jan 2003
Location: Melbourne, AU (from Bristol UK)
Status: Offline
Reply With Quote
Jul 3, 2007, 08:06 AM
 
If you use the vastly superior zsh instead of bash, then you can put "autoload zmv" into your .zshrc and get zmv for free.

Usage:
zmv [OPTIONS] oldpattern newpattern
where oldpattern contains parenthesis surrounding patterns which will be replaced in turn by $1, $2, ... in newpattern. For example,
zmv '(*).lis' '\$1.txt'
renames 'foo.lis' to 'foo.txt', 'my.old.stuff.lis' to 'my.old.stuff.txt', and so on. Something simpler (for basic commands) is the -W option:
zmv -W '*.lis' '*.txt'
This does the same thing as the first command, but with automatic conversion of the wildcards into the appropriate syntax. If you combine this with noglob, you don't even need to quote the arguments. For example,
alias mmv='noglob zmv -W'
mmv *.c.orig orig/*.c
     
besson3c
Clinically Insane
Join Date: Mar 2001
Location: yes
Status: Offline
Reply With Quote
Jul 3, 2007, 09:08 AM
 
Cool... file operations based on Perl regular expressions?
     
glypht
Forum Regular
Join Date: Jan 2007
Location: ZZ9 Plural Z Alpha
Status: Offline
Reply With Quote
Jul 3, 2007, 02:26 PM
 
I find R-Name to be excellent for doing this. Donationware...
     
Sal
Dedicated MacNNer
Join Date: Sep 2000
Location: Cupertino, CA USA
Status: Offline
Reply With Quote
Jul 5, 2007, 12:35 AM
 
FYI guys, there's a tutorial on how to rename on the AUTOMATOR.US website. Also contains a lot more information on Automator and free downloads. Check out AUTOMATOR.TV for videos. Enjoy!
     
xmattingly
Fresh-Faced Recruit
Join Date: Dec 2006
Status: Offline
Reply With Quote
Jul 7, 2007, 04:58 AM
 
Personally, I like this program:

A Better Finder Rename

It functions as part of your contextual menus in the Finder, and has an INSANE amount of easy-to-use file renaming schemes to pick from. You can also create droplets for renaming schemes that you might use regularly. I haven't heard of the other ones that were mentioned though; definitely worth checking out!
     
PaperNotes
Registered User
Join Date: Jan 2006
Status: Offline
Reply With Quote
Jul 7, 2007, 05:55 AM
 
Another vote for A Better Finder Rename. Indispensable app.
     
   
 
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 07:42 AM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,