2

Rename Selected Source Media

This plugin renames the Media records and also the media files (in the Media project folder or external) that are associated with the selected Source records,
so that their names match the Source record title as closely as possible. It will add a numeric suffix to ensure uniqueness if necessary.

Caution:
This plugin renames external Windows media files associated with source records. ‘Undo plugin updates’ won’t restore the original filename.

When renaming a media file that is used in other projects as well, links to that media file in the other projects will no longer work, unless and until you repair them.

Warning:
Windows does not support certain characters in the filename. The plugin will replace these with ~ and report the replacement(s) in the result set.

Download Rename Selected Source Media V1.5

  • Family Historian Version(s): V7
  • Plugin Type: Standard
  • Written by Joop van Beek
  • View Source Code
  • Downloaded 201 times
  • No additional help available

Version History

Version 1.2  Adds support for accented characters in the filename.

Version 1.3 Handles non-ANSI characters in the filename.

Version 1.4 Characters that cannot be converted to ANSI or a close equivalent will be replaced by ~ to make sure the Windows filename is valid.

Version 1.5 Uses FileSystemObject to communicate with the filesystem handling all special characters (removes provisions in 1.3 and 1.4)

2 thoughts on “Rename Selected Source Media”

  1. Would it be possible to display how the filenames would be modified prior to actually committing those irreversible changes?
    It would make the plugin less risky to use.

  2. I “think” there’s possibly a flaw in the coded plugin logic, because the plugin seems to append additional sequential numbers, if it is run more than once on sources with two or more attached images. I would have thought it should take the source name, use it as the media name for the first file and associated filename, then use that same name as the base filename and add 1 to the attached index for each subsequent image. It seems to be taking the existing filename for the subsequent images and adding an incremented index number for the second and subsequent file.

Leave a Reply

Your email address will not be published. Required fields are marked *