Renaming Files

From UA Libraries Digital Services Planning and Documentation
Jump to: navigation, search

We use two programs to rename files in bulk.

Contents

Options

Use Adobe Bridge if you...

  • find problems while you capture / before you export to .tif, or
  • already have Bridge open, and
  • the problem is simple

Use Bulk Rename Utility if you...

  • find problems after you export to .tif, and
  • the problem is complex

Adobe Bridge Batch Renaming

Functionality

  1. Can completely rewrite filenames, including adding a sequential number
  2. Can pattern match to rewrite parts of filenames

Use

  1. Select all the files you want to be changed
  2. Right-click or go to Tools, then select Batch Rename...
  3. You shouldn't have to mess with the top two sections of the window (Presets and Destination Folder) or the next to bottom section (Options)
  4. Under New Filenames
    • Choose an action from the dropdown menus
    • Use the + / - buttons to add or subtract additional lines
    • Don't worry about the extension -- it will remain unchanged
  5. Check the Preview section to see how the first filename will be transformed
  6. Click Rename

Common Procedures

  • Rename a file
    • Use on either a bunch of singletons or a single item with multiple pages
    • If it's a list of singletons
      • On the first line, choose Text and fill in the filename minus however much will need to be the sequence number
      • On the second line, choose Sequence Number, fill in the starting page number, and choose however many digits you need that sequence number to be
    • If it's a multipage item
      • On the first line, choose Text and fill in the filename minus the four-digital page number
      • On the second line, choose Sequence Number, fill in the starting page number, and choose Four Digits
  • Replace part of a filename
    • Use on any kind of filename
    • Reduce to one line
    • Choose String Substitution
    • Put the text you're removing in the Find box, and put the text you're replacing it with in the Replace with box
      • Be careful -- make sure the pattern in Find doesn't appear in more than one place in the filename
    • Leave the check box ticked for Replace All

Bulk Rename Utility

If this program isn't available on the machine you're working on, you can download the program from the Share drive in Administrative/forSoftware/Bulk_Rename_Utility

Functionality

  1. Can do just about anything, really!
  2. Seriously, the below is just a discussion of common things we use it for, but if you play around, you might see new possibilities

Use

  1. Start Bulk Rename Utility program
  2. Navigate to the folder with the files you want to rename
  3. Select the files you want to rename from that folder
  4. Tinker with as many sections at the bottom as you want, to do a variety of actions (see below)
    • Don't worry about the extension -- it will remain unchanged
    • In the top corner, the check box means these changes will be applied, so uncheck it if you're going back and forth between different kinds of changes; the R reverts the box back to default
  5. A preview of the new filename will appear in the second column at the top, in green -- this is especially helpful to keep an eye on while you tinker, especially if you're doing more than one thing to the filename at once
  6. Click Rename

Common Actions

  • Replace (3)
    • Put the text you're removing in the Replace box, and put the text you're replacing it with in the With box
  • Remove (5)
    • Use First n or Last n to remove digits from the beginning or end of a filename
    • Use From / to if removing digits from the middle
  • Add (7)
    • Prefix adds to the beginning
    • Insert adds to the middle at whatever position you choose in the box immediately below it
    • Suffix add to the end
  • Numbering (10)
    • Change Mode to Suffix -- if left on None, this section does nothing
    • Start tells you what number to start with
    • Leave Incr. at 1 (unless you're doing something wacky)
    • Pad tells the program how many digits you want -- how many zeroes to pad with, basically
  • Selections (12)
    • If you want to view and rename items in subfolders, check the Subfolders button
    • If you need to view just folders, make sure only Folders is checked (it checks Files, too, by default)

Advanced Actions

  • Use a match file to designate changes
    • Match file should have one pair of filenames per line, separated by a pipe (|), like this: oldfilename|newfilename
    • From File menu, select Import Rename-Pairs
    • Navigate to the match file and click Open
    • You will need to select the files you want changed, as you normally would; the program simply takes its instructions from your match file, rather than the sections at the bottom
  • Make a copy of a file -- with a new name, and in a different location
    • Use the section New Location (13)
    • This will rename and move files to a path you browse to (with the ... button), which you'd not normally want to do
    • But it will also rename a copy of a file in a different place, and leave the original alone -- to do this, check Copy not Move
Personal tools