Rename Non-Unique Multimedia

...is a DELUXE LTOOL which finds and (optionally) renames non-unique multimedia files in your Legacy database. It both renames the files on disk AND in your Legacy database.

Screen:

uri/../images/deluxe-rename-non-unique-mm.jpg

Usage:

To find and (optionally) rename non-unique multimedia files in your Legacy database:

  1. Back up your Legacy database.
  2. Back up your multimedia files.
  3. Open your Legacy database in _LTools_.
  4. Double-click Rename Non-Unique Multimedia in the Deluxe LTools tree to bring up the dialog for this LTool.
  5. Check List Only if you only want a report of non-unique multimedia file names. I recommend running this first to see what you are dealing with. You may want to correct some things in Legacy or your FileSystem before proceeding to List & Rename.
  6. Check List & Rename if you wish to rename your non-unique multimedia files so as to make them unique.
  7. If you wish to manually rename the non-unique multimedia files, check Prompt me for every file name.
  8. Check Try to use folder names when renaming if you wish this LTool to prepend portions of the folder name to the file name in an attempt to make the file name unique.
  9. Enter text in Append to basename if you wish to append a string to each non-unique file name in an attempt to make the file name unique.
  10. Click the Run button.
  11. _LTools_ will either produce a list of non-unique multimedia file names or rename the non-unique multimedia files.

Here's how the automatic rename generates unique file names...

If _Try to use folder names when renaming_ (Plan A) is checked, this LTool will:

  1. Get the folder name that the file resides in
  2. Remove the portion of the folder name that is equal to the _Default Picture Folder_
  3. Convert all backslashes to "-" or "\_"
  4. Prepend what's left to the non-unique file name
  5. And finally append the _Append to basename_ string to the file name (removing the {0})

An example of a file name generated via Plan A follows...

Suppose the non-unique file name is "C:\Documents and Settings\Dennis\My Documents\Legacy\Images\Newspapers\article-runyon-donald-e.jpg".

Now suppose the _Default Picture Path_ is "C:\Documents and Settings\Dennis\My Documents\Legacy\Images\".

Finally suppose the _Append to basename_ text is "-DUPE{0}".

Plan A will generate a file name of "C:\Documents and Settings\Dennis\My Documents\Legacy\Images\Newspapers\Newspapers-article-runyon-donald-e-DUPE.jpg".

The {0} in the text is stripped in for Plan A.

This LTool will then check to make sure the generated file name is unique.

If _Try to use folder names when renaming_ (Plan A) is NOT checked, or Plan A fails to produce a unique file name, this LTool will proceed to Plan B, which entails:

  1. Append the _Append to basename_ string to the file name
  2. Substitute integers starting with "1" for the {0}, adding "+1" each time until a unique file name is generated.

An example of a file name generated via Plan B follows...

Suppose the non-unique file name is "C:\Documents and Settings\Dennis\My Documents\Legacy\Images\Newspapers\article-runyon-donald-e.jpg".

And suppose the _Append to basename_ text is "-DUPE{0}".

Plan B will generate a file name of "C:\Documents and Settings\Dennis\My Documents\Legacy\Images\Newspapers\Newspapers-article-runyon-donald-e-DUPE1.jpg".

If that file name is not unique, this LTool will try "C:\Documents and Settings\Dennis\My Documents\Legacy\Images\Newspapers\Newspapers-article-runyon-donald-e-DUPE2.jpg".

This LTool will keep adding "+1" until it finds a unique file name.

Fields:

uri/../images/bluepin.gif Default Picture Path

The _Default Picture Path_ that you have specified in Legacy under _Options_ \| _Customize_ \| _Locations_.

uri/../images/bluepin.gif Additional Multimedia Paths

All other multimedia paths that are found in this Legacy database (i.e. tblBP).

uri/../images/bluepin.gif Action

Choose _List Only_ to get a list of multimedia file names that are non-unique. Choose _List & Rename_ if you wish to rename the non-unique multimedia files. The default is _List Only_.

uri/../images/bluepin.gif Prompt me for every file name

Choose this option if you wish to enter file names manually. Unchecking this tells this LTool to attempt to come up with unique file names on its own (according to Plan A & B mentioned above). This option is only available if _List & Rename_ is checked. The default is checked.

uri/../images/bluepin.gif Try to use folder names when renaming

Choose this option if you wish this LTool to first try prepending portions of the folder name (Plan A) in an effort to come up with a unique file name. This option is only available if _List & Rename_ is checked and _Prompt me for every file name_ is unchecked. The default is checked.

uri/../images/bluepin.gif Append to basename

A string that will be appended to the non-unique file's basename in an attempt to make the file name unique. {0} in this field is a placeholder for an incremented integer that will be added to the basename. This option is only available if _List & Rename_ is checked and _Prompt me for every file name_ is unchecked. The default is "-DUPE{0}".

uri/../images/bluepin.gif Files renamed

The number of multimedia files that were renamed.

uri/../images/bluepin.gif Run

Click to have _LTools_ perform the specified _Action_.

uri/../images/bluepin.gif Close

Click to close this dialog.

uri/../images/bluepin.gif Help

You can use the ? (on the caption bar) or the \ key to display help for this dialog.



Introduction | Deluxe Features | Find Missing Information | Send Legacy Reminders | Tidy Legacy HTML | List Events | Find Unattached Multimedia | Add Events | Add To-Do's | Address Converter | Advanced Set Living++ | Advanced Tagging - Tag Living | Backup/Restore USR Files | Copy Master Event | Delete Master Events | Advanced Tagging - Y-DNA | Get IPTC Data | Global Text Search | Merge Basic to SourceWriter Sources | MRIN Filing Assistant | Repair Multimedia Paths | RegEx GEDCOM | Run Raw SQL | Set IPTC Data | Set Picture Captions | Set Special User IDs | Sort All Children | Sort Children of Tagged Individuals | Sort Events | Sort Marriages by Date | View Legacy Tables | Rename Non-Unique Multimedia | Advanced Tagging | Advanced Tagging - Ancestors Plus | Advanced Tagging - Mito DNA | Create Unknown Spouses | Remove Dead Multimedia Links | Data Bridge | Save/Restore Tags | Link Unattached Multimedia | Standard Features | Set Private/Invisible | Change To-Do Priorities | Clear IPTC Data | DAR Lineage Worksheet | Delete To-Do's | Include Citations by Surety Level | Include Citations by Verified Flag | Remove Medical Notes for Living Individuals | Search Citations | Search File IDs | Set Individual User IDs | Set Marriage User IDs | Set Birthday/Anniversary/Death Reminders | Set Source Surety Levels | Set Source Verified Flags | System Requirements | Contact Info | Miscellaneous Help | Legacy Tables | Product Registration | Edit Preferences | Command Line | Legacy Tables - tblSX.Type | pedigree.css | Source Template | Event Template | About Wiki Web Help | Miscellaneous Tools | Convert Long to Short U.S.A. Location Names