* Rename Selected Media Files
-
- Megastar
- Posts: 1006
- Joined: 22 Jun 2016 15:54
- Family Historian: V7
- Location: United Kingdom
Rename Selected Media Files
Dear Jane/Forum
Looking at your Plugin (Rename Selected Media Files) would it be possible to change the plugin to work from the Source Record Title instead of the Media Record? I have a large number of Baptism records whereby the Source record would read something like: Baptism Bishops Cleeve, Gloucestershire, England (The Parish Church) date and name. These have been created by AS.
I have since discovered the Parish Church name is St Michaels and All Angels, so I would like to change The Source record to read: Baptism Bishops Cleeve, Gloucestershire, England (St Michaels & All Angels) date and name, and then update the Media Record and Media Files accordingly. I can change the Source Records manually but would like the related Media Record and Media File(s) to follow suit and be renamed as per the Source Record Title.
Is this possible or am I forced to make the changes entirely manually?
Many thanks.
David
Looking at your Plugin (Rename Selected Media Files) would it be possible to change the plugin to work from the Source Record Title instead of the Media Record? I have a large number of Baptism records whereby the Source record would read something like: Baptism Bishops Cleeve, Gloucestershire, England (The Parish Church) date and name. These have been created by AS.
I have since discovered the Parish Church name is St Michaels and All Angels, so I would like to change The Source record to read: Baptism Bishops Cleeve, Gloucestershire, England (St Michaels & All Angels) date and name, and then update the Media Record and Media Files accordingly. I can change the Source Records manually but would like the related Media Record and Media File(s) to follow suit and be renamed as per the Source Record Title.
Is this possible or am I forced to make the changes entirely manually?
Many thanks.
David
- tatewise
- Megastar
- Posts: 28341
- Joined: 25 May 2010 11:00
- Family Historian: V7
- Location: Torbay, Devon, UK
- Contact:
Re: Rename Selected Media Files
Assuming that Baptism Bishops Cleeve, Gloucestershire, England (The Parish Church) is unique and already appears in the Source record title, Media record title and File Link name, then the Edit > Find and Replace command should change all those, or if not then the Search and Replace Plugin should.
That just leaves the Media folder filenames themselves, and I am sure there are File Explorer tools that would do that in bulk, and suspect other users will suggest some.
Do take a Project Full Backup before you start experimenting.
That just leaves the Media folder filenames themselves, and I am sure there are File Explorer tools that would do that in bulk, and suspect other users will suggest some.
Do take a Project Full Backup before you start experimenting.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry
-
- Megastar
- Posts: 1006
- Joined: 22 Jun 2016 15:54
- Family Historian: V7
- Location: United Kingdom
Re: Rename Selected Media Files
Thank you Mike
Yes - I did wonder if the Search and Replace might handle it but then as you say the Media files themselves would need attention. I guess your suggestion would handle the bulk of the task if I were to verify each update. I'll take a full backup of course and try it out.
Many thanks.
Yes - I did wonder if the Search and Replace might handle it but then as you say the Media files themselves would need attention. I guess your suggestion would handle the bulk of the task if I were to verify each update. I'll take a full backup of course and try it out.
Many thanks.
- BillH
- Megastar
- Posts: 2245
- Joined: 31 May 2010 03:40
- Family Historian: V7
- Location: Washington State, USA
Re: Rename Selected Media Files
David,
I use a tool called Bulk Rename Utility to make mass changes to file names in Windows. Works great. You can find it here.
http://www.bulkrenameutility.co.uk/Download.php
Select your media folder and then use the option Replace (3) and if you have subfolders in your media folder then also select Subfolders in the option Filters (12).
I use this all the time and it is very handy. If you have any questions on how to use it let me know.
I use a tool called Bulk Rename Utility to make mass changes to file names in Windows. Works great. You can find it here.
http://www.bulkrenameutility.co.uk/Download.php
Select your media folder and then use the option Replace (3) and if you have subfolders in your media folder then also select Subfolders in the option Filters (12).
I use this all the time and it is very handy. If you have any questions on how to use it let me know.
Last edited by BillH on 28 Nov 2017 17:24, edited 1 time in total.
-
- Megastar
- Posts: 1006
- Joined: 22 Jun 2016 15:54
- Family Historian: V7
- Location: United Kingdom
Re: Rename Selected Media Files
Thanks Mike/Bill
The search and replace plugin worked a treat for renaming the unique part of the Source and Media links. I see Bill has offered up a Windows File rename solution. Thanks Bill, I'll check this out.
The search and replace plugin worked a treat for renaming the unique part of the Source and Media links. I see Bill has offered up a Windows File rename solution. Thanks Bill, I'll check this out.
- BillH
- Megastar
- Posts: 2245
- Joined: 31 May 2010 03:40
- Family Historian: V7
- Location: Washington State, USA
Re: Rename Selected Media Files
David, I edited my previous reply but you read it before I got it posted. Just a few hints on how to use it. It looks complicated but really I only use about 5 or 10% of its capabilities.
-
- Megastar
- Posts: 1006
- Joined: 22 Jun 2016 15:54
- Family Historian: V7
- Location: United Kingdom
Re: Rename Selected Media Files
Hi Bill
Figured it out - thank you very much. This will for sure save time. Thanks for the recommendation and guidance.
Figured it out - thank you very much. This will for sure save time. Thanks for the recommendation and guidance.
- tatewise
- Megastar
- Posts: 28341
- Joined: 25 May 2010 11:00
- Family Historian: V7
- Location: Torbay, Devon, UK
- Contact:
Re: Rename Selected Media Files
This has given me an idea for the Search and Replace Plugin.
When changing Filename links it should also rename the associated Media file itself.
I will look into that.
When changing Filename links it should also rename the associated Media file itself.
I will look into that.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry
-
- Megastar
- Posts: 1006
- Joined: 22 Jun 2016 15:54
- Family Historian: V7
- Location: United Kingdom
Re: Rename Selected Media Files
Hi Mike
That would be great - Thank You.
That would be great - Thank You.
-
- Megastar
- Posts: 1006
- Joined: 22 Jun 2016 15:54
- Family Historian: V7
- Location: United Kingdom
Re: Rename Selected Media Files
Hi Mike
Follow up on your idea. Are you thinking of a way to actually rename the windows media file?
Follow up on your idea. Are you thinking of a way to actually rename the windows media file?
- davidm_uk
- Megastar
- Posts: 740
- Joined: 20 Mar 2004 12:33
- Family Historian: V7
- Location: St Albans, Hertfordshire, UK
Re: Rename Selected Media Files
I think that's what Mike means by describing it as a media file, as distinct from a media record.
David Miller - researching Miller, Hare, Walker, Bright (mostly Herts, Beds, Dorset and London)
- tatewise
- Megastar
- Posts: 28341
- Joined: 25 May 2010 11:00
- Family Historian: V7
- Location: Torbay, Devon, UK
- Contact:
Re: Rename Selected Media Files
Yes, whenever a Search and Replace needs to change a Media link to a File then the updated Plugin will also rename the Windows file name &/or folder path too, so the link is not broken.
Try the attached Search and Replace Plugin Version 2.8.1 Date 29 Nov 2017.
[ Attachment deleted as now published in Plugin Store in Feb 2018. ]
BUT before using it do ensure you have taken a File > Backup/Restore > Full Backup (Entire Project Folder) especially since even Edit > Undo Plugin Updates will NOT reverse the Windows folder/file renaming.
Beware that if folder paths are renamed then the original folder(s) will still exist, but may be empty, so will need manual deletion.
I may be able to improve that in a later prototype, but wanted to get some feedback on this first prototype version.
I considered adding a user Option to choose whether the Windows file was renamed or not, but cannot think of a reason why such a setting would ever be needed. Comments please.
Try the attached Search and Replace Plugin Version 2.8.1 Date 29 Nov 2017.
[ Attachment deleted as now published in Plugin Store in Feb 2018. ]
BUT before using it do ensure you have taken a File > Backup/Restore > Full Backup (Entire Project Folder) especially since even Edit > Undo Plugin Updates will NOT reverse the Windows folder/file renaming.
Beware that if folder paths are renamed then the original folder(s) will still exist, but may be empty, so will need manual deletion.
I may be able to improve that in a later prototype, but wanted to get some feedback on this first prototype version.
I considered adding a user Option to choose whether the Windows file was renamed or not, but cannot think of a reason why such a setting would ever be needed. Comments please.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry
-
- Megastar
- Posts: 1006
- Joined: 22 Jun 2016 15:54
- Family Historian: V7
- Location: United Kingdom
Re: Rename Selected Media Files
Thank you Mike
I will put this plugin through testing tonight . Much appreciated.
David
I will put this plugin through testing tonight . Much appreciated.
David
-
- Megastar
- Posts: 1006
- Joined: 22 Jun 2016 15:54
- Family Historian: V7
- Location: United Kingdom
Re: Rename Selected Media Files
Hi Mike
Early tests shows it is absolutely spot on. I'll make more extensive tests tomorrow, but what a time saver, thank you so much.
Early tests shows it is absolutely spot on. I'll make more extensive tests tomorrow, but what a time saver, thank you so much.
- tatewise
- Megastar
- Posts: 28341
- Joined: 25 May 2010 11:00
- Family Historian: V7
- Location: Torbay, Devon, UK
- Contact:
Re: Rename Selected Media Files
Try the revised attached Search and Replace Plugin Version 2.8.2 Date 30 Nov 2017.
[ Attachment deleted as now published in Plugin Store in Feb 2018. ]
This attempts to delete folders that due to the changes no longer hold any files.
However, it may not clean up an entire nested hierarchy of empty folders.
Such scenarios are rare as they only arise if folder names rather than filenames are changed.
Where appropriate due to the changes, it converts any absolute Media paths to relative Media paths.
During testing it was found that Media FILE tags were not handled along with _FILE tags.
Also the rare PLAC.FORM tags were not identified along with OBJE.FORM tags.
These issues have been resolved and the Extra Filters tab Short Text Field options modified.
[ Attachment deleted as now published in Plugin Store in Feb 2018. ]
This attempts to delete folders that due to the changes no longer hold any files.
However, it may not clean up an entire nested hierarchy of empty folders.
Such scenarios are rare as they only arise if folder names rather than filenames are changed.
Where appropriate due to the changes, it converts any absolute Media paths to relative Media paths.
During testing it was found that Media FILE tags were not handled along with _FILE tags.
Also the rare PLAC.FORM tags were not identified along with OBJE.FORM tags.
These issues have been resolved and the Extra Filters tab Short Text Field options modified.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry
-
- Megastar
- Posts: 1006
- Joined: 22 Jun 2016 15:54
- Family Historian: V7
- Location: United Kingdom
Re: Rename Selected Media Files
Thank you Mike.
I will try the revised plugin - I'm not sure I have any of the scenarios mentioned though.
I will try the revised plugin - I'm not sure I have any of the scenarios mentioned though.
- tatewise
- Megastar
- Posts: 28341
- Joined: 25 May 2010 11:00
- Family Historian: V7
- Location: Torbay, Devon, UK
- Contact:
Re: Rename Selected Media Files
Probably not, but it is not difficult to synthesise them in the Family Historian Sample Project.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry