| Subcribe via RSS

Batch rename multiple files

April 2nd, 2009 Posted in Mac

Often you might find you have a folder containing hundreds of files, and you want to rename them all, for example to create a numbered list. In the Finder this would take ages, but luckily you can use Automator to make the process more efficient.

Simple open up Automator and add the following actions into the workflow. First add “Get Specified Finder Items” followed by “Sort Finder Items” followed by “Rename Finder Items”. Your workflow should look something like the screenshot below. When you add the “Rename Finder Items” action, you will be asked if you want to create a copy of the files. Generally you won’t want to do this, so choose “Don’t Copy”.
Batch Rename in Automator
What the workflow does is pretty straightforward. When you click Run in the top right, it gets the files you have added to the list in the first action. You can add the files by clicking the Add button below the list before you run the workflow. The second action then sorts the files by name, size, kind, or whatever you specify. The final action takes this list of files and modifies their file names.

There are a huge amount of options in the “Rename Finder Items” action. The first drop-down menu allows you to choose between adding a date or time, adding text, changing uppercase/lowercase, making a sequential list or performing a find and replace for a string of text.

The second action, “Sort Finder Items” is really optional and only makes a difference if you have the renaming action set to “Make Sequential”. This takes the list in the order it’s given and places sequential numbers before or after the file names depending on the files position in the list.
Rename Action
Also, there are a couple of alternatives to the first action. One option is to use “Get Selected Finder Items” instead, which will perform the renaming on whatever the current selection is in the Finder. Another is “Ask for Finder Items”, which will open up a dialog prompting you to choose the files each time you run the workflow. This is a good choice if you want to regularly perform the same renaming on different batches of files. You can then save the workflow as an application (File, Save As… and then choose Application from the File Format menu) that simply runs the workflow when you open it, instead of bring up Automator.

Via | Mac OS X Tips

Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks

Leave a Reply

Hey.lt - Nemokamas lankytojų skaitliukas
Add to Technorati Favorites
Do you crave mobility? Do you love online slots? Do you adore your Apple iPhone? If you answered yes to any of these, do this now: Download the brand, spanking new iPhone casino. You will be blown away as this phenomenal new product makes waves around the world.