Jump to content


Photo

Changing Media File Names

Changing Media File Names

  • Please log in to reply
19 replies to this topic

#1 Rick Landrum

Rick Landrum

    Advanced Member

  • Members
  • PipPipPip
  • 337 posts

Posted 01 October 2018 - 04:19 PM

Quick question -

 

In the case where I have to (or want to) change a media file name, how can I change the path for multiple persons in my RM tree?

 

I know how to use "Properties/change media file" but that is a one by one solution. Is there a faster way to correct a "one (media) to many (persons/facts/sources/etc) ?

 

Any hints appreciated

 

Thanks

Rick 


RickL


#2 Bob C

Bob C

    Advanced Member

  • Members
  • PipPipPip
  • 234 posts

Posted 01 October 2018 - 06:12 PM

have you looked at Search>Search and Replace>Media File Names?



#3 Vyger

Vyger

    Advanced Member

  • Members
  • PipPipPip
  • 3385 posts

Posted 02 October 2018 - 05:56 AM

Quick question -

 

In the case where I have to (or want to) change a media file name, how can I change the path for multiple persons in my RM tree?

 

 

Changing file name and changing path are two different things.

 

If you are just moving the files to new folders then the utility Fix Broken Lings will relink them to RM.

 

Renaming file names needs to be done one by one within RM so the link is not broken. There are ways to do batch processing but it will take some planning and careful implementation.


“Your most unhappy customers are your greatest source of learning.” -Bill Gates

It's now time for discretion, trust, patience and support

 

User of Rootsmagic 7.5.9, Family Historian 6.2.7, Family Tree Maker 2014 & Legacy 7.5

 

Excel to Gedcom conversion - simple getting started tutorials here

 

Root


#4 Rick Landrum

Rick Landrum

    Advanced Member

  • Members
  • PipPipPip
  • 337 posts

Posted 02 October 2018 - 08:14 AM

I'm not wanting to move files between folders or directories, I want to rename them.  I have accumulated lots of media over time, sometimes using inconsistent naming conventions, that I want to clean up without having to change person by person. This process works well in those cases where you want to change "one to many". [Example - I added a file named "Veteran of War 1812" in my media gallery. It was an image of an 1812 US flag. I have numerous ancestors who served. I wanted to change the file name to "Flag - War 1812" so I could search for all my "flag" images more easily in the gallery.] This process changed the file, for all persons with that media file attached, in one pass.

 

I agree that it takes careful planning, but it can be done. I tested the hint regarding "Search>Search and Replace>Media File Names" and it did work, but there are a few steps you must follow to be successful. 

 

Step 1 - in PC media directory find the media file to be changed and change its name (be sure to record the old name with full path).

Step 2 - in RM media gallery add the changed file with the new name and full path. (Must be added before step 3)

Step 3 - in RM Search/Search Replace [multimedia file names] enter the old file path and name, in the "Replace With" field enter the new path and name and run. All instances of the old file name in your RM Database will be replaced with the new one. 

Step 4 - in RM media gallery delete the old file name (no longer needed or matched). DO NOT DELETE until after other steps completed.

 

My tests have shown this works without having to run "fix broken links". (but you might have to...)

 

Thanks to all

Rick


RickL


#5 Vyger

Vyger

    Advanced Member

  • Members
  • PipPipPip
  • 3385 posts

Posted 02 October 2018 - 08:53 AM

I'm not wanting to move files between folders or directories, I want to rename them.  I have accumulated lots of media over time, sometimes using inconsistent naming conventions, that I want to clean up without having to change person by person. This process works well in those cases where you want to change "one to many". [Example - I added a file named "Veteran of War 1812" in my media gallery. It was an image of an 1812 US flag. I have numerous ancestors who served. I wanted to change the file name to "Flag - War 1812" so I could search for all my "flag" images more easily in the gallery.] This process changed the file, for all persons with that media file attached, in one pass.

 

I agree that it takes careful planning, but it can be done. I tested the hint regarding "Search>Search and Replace>Media File Names" and it did work, but there are a few steps you must follow to be successful. 

 

Step 1 - in PC media directory find the media file to be changed and change its name (be sure to record the old name with full path).

Step 2 - in RM media gallery add the changed file with the new name and full path. (Must be added before step 3)

Step 3 - in RM Search/Search Replace enter the old file path and name, in the "Replace With" field enter the new path and name and run. All instances of the old file name in your RM Database will be replaced with the new one. 

Step 4 - in RM media gallery delete the old file name (no longer needed or matched). DO NOT DELETE until after other steps completed.

 

My tests have shown this works without having to run "fix broken links".

 

Thanks to all

Rick

 

Sounds like you have found a method, that's good, always be careful renaming files outside Rootsmagic. Depending on how you want to serach out media files in the future you may want to consider entering details into file properties, the short video linked below was posted some time ago on this subject;

 

Managing Media Files in Rootsmagic


“Your most unhappy customers are your greatest source of learning.” -Bill Gates

It's now time for discretion, trust, patience and support

 

User of Rootsmagic 7.5.9, Family Historian 6.2.7, Family Tree Maker 2014 & Legacy 7.5

 

Excel to Gedcom conversion - simple getting started tutorials here

 

Root


#6 Rick Landrum

Rick Landrum

    Advanced Member

  • Members
  • PipPipPip
  • 337 posts

Posted 02 October 2018 - 12:48 PM

 

Sounds like you have found a method, that's good, always be careful renaming files outside Rootsmagic. Depending on how you want to serach out media files in the future you may want to consider entering details into file properties, the short video linked below was posted some time ago on this subject;

 

Managing Media Files in Rootsmagic

Thanks for the link - very good overview

 

I get the "don't change file names outside of RM" stuff. But sometimes it makes sense if properly done to protect the links.

 

Also, off subject a bit, but the video talks about RM not having tools for comparing your RM media directory with your RM media gallery. I've found a way around this by downloading a multimedia list from RM, and a list of the directory contents from my PC. Then I import those to Excel. I tag the source of each item in the lists, and then I can sort the data. This gives you the ability to see something that is in one vs the other. Kind of crude but very easy to do. The items identified as orphans can then be handled appropriately.

 

Thanks again


RickL


#7 Renee Zamora

Renee Zamora

    Advanced Member

  • Support
  • PipPipPip
  • 8363 posts

Posted 02 October 2018 - 01:09 PM

Go to Lists>Media Gallery and highlight the image.
Click on Properties > Change media file.... buttons

In File Explorer right click on the media and select Rename.

Once it is renamed and saved it will keep the media link pointing to the renamed file.


Renee
RootsMagic

#8 Vyger

Vyger

    Advanced Member

  • Members
  • PipPipPip
  • 3385 posts

Posted 02 October 2018 - 01:44 PM

Thanks for the link - very good overview

 

I get the "don't change file names outside of RM" stuff. But sometimes it makes sense if properly done to protect the links.

 

Also, off subject a bit, but the video talks about RM not having tools for comparing your RM media directory with your RM media gallery. I've found a way around this by downloading a multimedia list from RM, and a list of the directory contents from my PC. Then I import those to Excel. I tag the source of each item in the lists, and then I can sort the data. This gives you the ability to see something that is in one vs the other. Kind of crude but very easy to do. The items identified as orphans can then be handled appropriately.

 

Thanks again

 

Thank you,

 

Took me a while to find it but there is a download link to an old Excel based VBA workbook on the page below which judging by the content may be 10 years old, since then the routine has evolved into a personal workbook to suit my own needs. It should still be perfectly functional as it simply compared a Multimedia List report to the the contents of a chosen folder and it's subs producing an unmatched list, you might be able to make use of it.

 

http://www.vyger.co....ry-collections/


“Your most unhappy customers are your greatest source of learning.” -Bill Gates

It's now time for discretion, trust, patience and support

 

User of Rootsmagic 7.5.9, Family Historian 6.2.7, Family Tree Maker 2014 & Legacy 7.5

 

Excel to Gedcom conversion - simple getting started tutorials here

 

Root


#9 Rick Landrum

Rick Landrum

    Advanced Member

  • Members
  • PipPipPip
  • 337 posts

Posted 02 October 2018 - 02:47 PM

 

Thank you,

 

Took me a while to find it but there is a download link to an old Excel based VBA workbook on the page below which judging by the content may be 10 years old, since then the routine has evolved into a personal workbook to suit my own needs. It should still be perfectly functional as it simply compared a Multimedia List report to the the contents of a chosen folder and it's subs producing an unmatched list, you might be able to make use of it.

 

http://www.vyger.co....ry-collections/

Thanks very much, I'll check it out

Rick


RickL


#10 Rick Landrum

Rick Landrum

    Advanced Member

  • Members
  • PipPipPip
  • 337 posts

Posted 05 October 2018 - 08:02 AM

Go to Lists>Media Gallery and highlight the image.
Click on Properties > Change media file.... buttons

In File Explorer right click on the media and select Rename.

Once it is renamed and saved it will keep the media link pointing to the renamed file.

Renee,

I'm not sure if this is an RM or a Windows issue, but I'm having trouble getting the correct media to show up in the Media list when I want to use the "change media file" tool. I select the media in "media gallery", click on properties, change media file, and my media directory list shows up in the window on center screen. However, the file I want is not visible and I have to scroll until I find it. There seems to be no way to search for it other than scrolling. With thousands of media files, this can take a very long time. I can't change the name of the media file by right clicking on the file name until find it in the list.  Am I missing something? Where/what are the "buttons" you mentioned?

Any suggestions appreciated

Thanks

Rick


RickL


#11 Bob C

Bob C

    Advanced Member

  • Members
  • PipPipPip
  • 234 posts

Posted 05 October 2018 - 08:12 AM

Have you tried entering words from the caption in the search box. This will display all the files w those words and you can select from there.



#12 Jerry Bryan

Jerry Bryan

    Advanced Member

  • Members
  • PipPipPip
  • 3482 posts

Posted 05 October 2018 - 08:22 AM

There is a search box at the top of RM's list of media files. You can search on all or part of the file name or the file path. You can search on all or part of the caption.

 

The rename process that Renee described is easier to do in List mode than in Thumbnails mode, but Thumbnails mode is the default and RM always reverts to Thumbnails mode any time you exit the Media List and re-enter it.

 

Jerry



#13 TomH

TomH

    Advanced Member

  • Members
  • PipPipPip
  • 6173 posts

Posted 05 October 2018 - 08:26 AM

You are right. There is no auto-jump to select the current media file in the Change Media File dialog window nor is there any find/search with which you could get to it to change its name. There are no shortcuts. Perhaps the faster method would be to change the filename outside of RM, thus breaking the link, copy the new filename, and paste it into the Change Media Filename dialog window.


Tom user of RM7550 FTM2017 Ancestry.ca FamilySearch.org FindMyPast.com
SQLite_Tools_For_Roots_Magic_in_PR_Celti wiki, exploiting the database in special ways >>> RMtrix-tiny.png app, a bundle of RootsMagic utilities.


#14 Rick Landrum

Rick Landrum

    Advanced Member

  • Members
  • PipPipPip
  • 337 posts

Posted 05 October 2018 - 08:33 AM

That is what I have been doing, but thought maybe I was missing something in Renee's suggestion. Actually I've found it is maybe easier to search for the media file using Windows file explorer and change the name there. I then use the Media Gallery/Change Media Filename dialog to change the file name in RM. Neither way is a good option. Maybe this will get some attention in a future upgrade.

Thanks

Rick


RickL


#15 Rick Landrum

Rick Landrum

    Advanced Member

  • Members
  • PipPipPip
  • 337 posts

Posted 06 October 2018 - 03:14 PM

Quick question -

 

In the case where I have to (or want to) change a media file name, how can I change the path for multiple persons in my RM tree?

 

I know how to use "Properties/change media file" but that is a one by one solution. Is there a faster way to correct a "one (media) to many (persons/facts/sources/etc) ?

 

Any hints appreciated

 

Thanks

Rick 

There are two reasons why I was asking the question.
1) When I first started using RM, I added many media files to my RM media gallery without any real structured naming conventions per se. I have since developed a complete set of naming conventions and have begun using these to name all new media files added. However the earlier files were named without this structure, which results in searching difficulties in both my RM media gallery and my Win10 media directory. I do wish to rename my older files, using the new naming conventions, which will make the names of my media files more consistent and much easier to search.
 
2) Since I have begun using Tree Share, I have noticed that Ancestry (or RM??) loads media files to my media gallery with unidentifiable file names. You have to go to the person's record in my tree and copy the path and file named assigned, before you can search either the media gallery or the Win10 media directory. This appears to be an on going problem. My media gallery is filling up with these media files with unidentifiable names. [example - media file for John Doe's grave marker, Ancestry assigned file name like "004779814_00436.jpg". I either need to be able to rename the file, or I'll have to enter tags in the Win10 directory to help with searching. This has to be done each time a new media file is imported through Tree Share. Again this is a slow, very time consuming task. I need a better way of handling this going forward.
 
I have reviewed the various responses to my post regarding changing RM media names. It seems pretty clear that there is no "automated" method for changing RM media names while maintaining the links between my media gallery and my Win10 media directory files. This means a huge investment in time will be required if I want to keep my media files named in a consistent and identifiable manner.
 
Of course RM will work OK, so long as the media file names match in both the media gallery and the Win10 media directory. But my preference is to have files that can be readily identified by looking  at the file name. [Example - "Doe, John_[GM]"; meaning John Doe Grave Marker].
 
I appreciate the responses I have received to this issue, and would like to hear more about any ideas others may have.
 
Thanks
Rick

RickL


#16 Jerry Bryan

Jerry Bryan

    Advanced Member

  • Members
  • PipPipPip
  • 3482 posts

Posted 06 October 2018 - 05:38 PM

My media gallery is filling up with these media files with unidentifiable names. [example - media file for John Doe's grave marker, Ancestry assigned file name like "004779814_00436.jpg".

 

 

It's apparent from any number of posts on these forums that many RM users view the ease that TreeShare provides in getting media files from ancestry into RM to be one of the big selling points of TreeShare. Because of the naming structure of such files, and because of the folder structure (it's one big folder for all such files), I personally don't find this to be a selling point of TreeShare at all. I therefore prefer to get media files from ancestry the old way - saving them to my computer from the standard ancestry.com interface rather than from the TreeShare interface.

 

Jerry



#17 TomH

TomH

    Advanced Member

  • Members
  • PipPipPip
  • 6173 posts

Posted 06 October 2018 - 07:02 PM

This page speaks to the batch conversion of cryptic citation media filenames from Ancestry to meaningful ones in RM... https://sqlite4roots...tion Media.html

Tom user of RM7550 FTM2017 Ancestry.ca FamilySearch.org FindMyPast.com
SQLite_Tools_For_Roots_Magic_in_PR_Celti wiki, exploiting the database in special ways >>> RMtrix-tiny.png app, a bundle of RootsMagic utilities.


#18 Rick Landrum

Rick Landrum

    Advanced Member

  • Members
  • PipPipPip
  • 337 posts

Posted 07 October 2018 - 01:08 PM

This page speaks to the batch conversion of cryptic citation media filenames from Ancestry to meaningful ones in RM... https://sqlite4roots...tion Media.html

Tom,

Appreciate the link. I tried to run it with SQLiteSpy and I received this error message, "Requires a SQLite manager with a RMNOCASE collation sequence". Can you point me to a version of SQLite that will run it?

 

I should have also mentioned before that if you put the person's name in the "Caption" field, with the media item properties, you can search it in the media gallery, but it still does not help in the media directory. What you have suggested sounds like just what I need if I can run it.

 

Thanks again

Rick


RickL


#19 TomH

TomH

    Advanced Member

  • Members
  • PipPipPip
  • 6173 posts

Posted 07 October 2018 - 02:28 PM

SQLiteSpy needs the RMNOCASE extension loaded. See https://sqlite4roots... SQLiteSpy.html

Tom user of RM7550 FTM2017 Ancestry.ca FamilySearch.org FindMyPast.com
SQLite_Tools_For_Roots_Magic_in_PR_Celti wiki, exploiting the database in special ways >>> RMtrix-tiny.png app, a bundle of RootsMagic utilities.


#20 Rick Landrum

Rick Landrum

    Advanced Member

  • Members
  • PipPipPip
  • 337 posts

Posted 07 October 2018 - 07:11 PM

SQLiteSpy needs the RMNOCASE extension loaded. See https://sqlite4roots... SQLiteSpy.html

Thanks Tom,

 

Worked like a charm (so far - still testing)

 

I had a hard time getting the RMNOCASE DLL to load. I had to turn off my anti-virus temporarily to get it to take. Then it seems to have run great.

Rick

 

===========================

Testing complete, worked great. That takes care of the "added by Ancestry" stuff. Now I just need to figure out how to straighten out the naming for the old media files that I loaded without a consistent naming convention. Another problem for another day.  :) I'll set up a schedule to run this periodically to fix the new adds from Tree Share going forward.

 

Thanks again Tom, you have been a great help.

Rick

=============================

Tom - FYI - I have found an issue with the RMNOCASE DLL. As said before, I have to turn off my antivirus in order to get SQLiteSpy to accept the DLL. However, when you close SQLiteSpy the DLL disappears, so you have to reload each time you want to use the program. Haven't found the cause yet, so I guess that's the work around for now.

Rick


RickL