- A file on disk may get renamed, or moved, breaking the link
from the database.
- A file may be added to the media folder on disk but then not attached to the
desired database element.
- A file may be added to RM, but then detached from all sources, facts etc , leaving it
- A file may be added to the database more than once.
That #media is one of the largest tags in the cloud in the sidebar says something about needed improvements in RootsMagic’s media management over its lifetime to date. Previously published scripts or apps may also have addressed one or more of these issues but what is novel or different about TestExternalFiles is:
- Developed in the Python programming language
- Executable either from the Python script (.py) if you have Python installed or as a standalone command line utility (.exe) for which #Python need not be installed
- Optional exclusion of specified folders and/or files from the directory listing to be compared with the database’s collection of media items
- Outputs a .txt file listing the results of its queries under these headings:
- Files Not Found
- Unreferenced Files
- Referenced Folders
- Files with no Tags
- Duplicated Files
TestExternalFiles has no user interface. One edits a .ini file to specify paths to the database file under test, the root folder for the media files and the output file along with setting which options are to be run and listing the exclusions. Double-clicking on the .py or .exe in the File Manager (or otherwise launching the utility) results in a brief flash of a blank window and it’s done. It is fast! Look for and open the output file to see the results of its analysis and act on as wanted.
Download the latest release from Richard’s github server ricko2001/Genealogy-scripts where you will also find fuller documentation and a bunch of other tools he has developed for his own use. The quality of his coding reflects his professional career in software development.