Watching:

Batch-renaming


show more Batch-renaming provides you with in-depth training on Design. Taught by Deke McClelland as part of the Photoshop CS5 One-on-One: Fundamentals show less
please wait ...

Batch-renaming

All right gang, in this exercise we're going to start renaming a few of our files. And as you may recall, most of our images have arbitrary filenames that were assigned by the various digital cameras. I have the Bridge pointed, once again at the 03_open_org folder. Couple of different ways you can rename files. One is you can just click on an existing filename. That will highlight all but the extension, and then you can go ahead and replace that filename with something else. For example I could call this Snowmobile trails because that's what we're seeing there, and then I could press the Tab key to advance to the next file, and the reason these guys switch with each other is because we're looking at the images in reverse order according to filename.

So T comes after S and as a result they got resorted. Anyway I'm going to call this Snowmobile guide, because he was our leader, jumping all over the place there. All right, so that's something you can do. You can also by the way override the extension if you want to. I'm going to switch this Felix Mizioznikov subfolder, and you may recall the Two young women.jpg is actually a TIFF file. So I could go ahead and select JPEG manually after making the filename active then drag over JPEG and replace it with TIFF, then hit the Enter key or the Return key on the Mac and the Bridge is going to say, hey, that's really dangerous that you're trying to do this because you might render this image unusable.

Au contraire Bridge it was already unusable, I'm rendering it usable so I want to go ahead and click OK in order to except that modification. So you can do that as well. What I'm going to tell you is renaming your images one-by-one is a way to work but it's not the most common way to work. You probably are going to be batch renaming, renaming lots of images at once. While we go ahead and switch to our JPEG files assuming you created that folder along with me and let's switch our filenames so that we're seeing them in standard old everyday alphabetical order.

So we're seeing the images in the order they were shot because that's the order in which they were named by the camera. And I'm going to click on this first butterfly and then I'm going to scroll down to this butterfly right before Sammy. So I want to rename these guys and I'll go up to either the tools menu and choose Batch Rename, that's one way to work, or you can go to this little icon right there, the Refine icon and click on it and choose Batch Rename. In any case it's Ctrl+Shift+R or Command+Shift+R on the Mac. And notice that you have to have files selected, you can have as few as one file selected if you want, but something needs to be selected there inside the Bridge.

Now then, notice that we can create Presets inside of this dialog box. That's new to CS5, and in fact there is a fair amount of new stuff going on here inside of Bridge CS5. Now by default the Bridge wants to go ahead and rename all of your files' project with the date created and this really long sequence number, which is for the birds in my opinion, what a dumb thing to do. I am going to go ahead and give my images a meaningful name like Butterfly pavilion because that's where I shot these images. And I'm going to get rid of that Date Created thing.

We can find that out in a different way. So we don't have to clutter the filename with the date. And I'll get rid of this bit of Text too, and I'll add a little hyphen, like so, after Butterfly pavilion. And let's make the Sequence Number just two digits long, four digits why? So I'll go ahead and replace the Current filenames with Butterfly pavilion-01 and so on and if you want to check out how your images are going to be renamed and this becomes exceedingly important. When we start replacing strings inside of our filename you can click on Preview and you'll see that what's now B000418.jpg will become Butterfly pavilion-01.jpg.

Excellent! Click OK. You can also by the way export this list to a CSV file, which is a spreadsheet, which you can open up in Excel or the like. Anyway, I'm going to say OK and I'm going to go ahead and rename. And just like that I've renamed all of these images. Now they've jumped to the bottom because they are now at the end of the alphabetical order, and notice they go to 12, very important because we missed a couple, these two guys were hiding from us and I need to rename them too. So I'll go ahead and select them and once again choose the Batch Rename command, and I want to run this same operation so it comes up once again and it remembers that I left off at Sequence Number 13, which is totally great, now you can change that number to anything you like.

I could change it to 103 which is not two digits long so I'd have to change the number of digits or change that number right there, but 13 is exactly what I want. So one would think if I click on Preview that I'll see one image turn to 13 and the other to 14, sure enough, click OK, click Rename. I'm in good shape. I went ahead and got those two guys. Now if you want to do the same thing back inside of your DNG files. So we're just taking care of these JPEG files for the moment, I'll go back over to open_org, which is the list of original files here and I'll scroll down until I find this group of butterflies.

Let's go ahead and select all of them, click on one, Shift+Click on the other and then I'm going to Ctrl+Click on each of these two to add them to the selection, that's a Command+Click on the Mac, and I'll go back up to tools, choose Batch Rename once again, and let's go ahead and rename all of these guys except, let's start at 01, or you can just enter 1, by the way you don't have to enter the 0 and click on Preview and you'll see that it goes from 1 to 14, excellent, click OK, click Rename, there we go, everything is taken care of. Now there is one pet peeve that I have with some of the filenames in this list here.

Notice that most of the filenames end in lowercase extensions, which I like, but some of them end in uppercase extensions, which I just personally hate. It just bugs me. So let's say you're the same way. You have these same issues that I do, and you want to go ahead and rename all of your images with lowercase filenames. Check this out, go ahead and press Ctrl+A, Command+A on the Mac to just select all of the images. Then let's go back up to tools choose Batch Rename, and here's what we're going to do, we're going to switch out this first guy for preserved filename, like so, and we're going to say Name, so that's the name of the file and we're going to say Original Case.

So we're not going to change the filenames at all. And then we're going to change this guy to Preserved Filename and he will be just the extension and he will be lowercase, like so. So that will replace out all the uppercase extensions with lowercase ones, click on Preview, and you should see just ten of these files change because only ten of them had uppercase extensions in the first place. Now they'll go to lowercase extensions. That is, if you are working along with me of course. If you're doing your own thing you may see any number of files change, click OK. And now I would save this off as a Preset and I'll go ahead and click on the Save button and I'm going to call it Extension fixer because this is the kind of thing I do on a regular basis, click OK, and now you'll just be able to choose that preset in the future in order to replace uppercase extensions with lowercase ones.

All right, now I'll click Rename and the deed, she is done. And the Bridge is even smart enough to select just those ten images that are renamed. That's pretty amazing. In the next exercise I'm going to show you how to do String Substitutions, which is a feature that's new to CS5.

Batch-renaming
Video duration: 7m 15s 17h 33m Beginner

Viewers:

Batch-renaming provides you with in-depth training on Design. Taught by Deke McClelland as part of the Photoshop CS5 One-on-One: Fundamentals

Subjects:
Design Photography
Software:
Photoshop
Author:
please wait ...