* Copy source titles to filenames

For users to report plugin bugs and request plugin enhancements; and for authors to test new/new versions of plugins, and to discuss plugin development (in the Programming Technicalities sub-forum). If you want advice on choosing or using a plugin, please ask in General Usage or an appropriate sub-forum.
Post Reply
avatar
JoopvB
Superstar
Posts: 328
Joined: 02 May 2015 14:32
Family Historian: V7

Copy source titles to filenames

Post by JoopvB » 23 Jan 2021 20:16

Does a plugin exist that, for a selection of sources, copies the source title to the linked filename (if any) and also to the media name of that file.
Or is there another easy way to get this done?

User avatar
ColeValleyGirl
Megastar
Posts: 4854
Joined: 28 Dec 2005 22:02
Family Historian: V7
Location: Cirencester, Gloucestershire
Contact:

Re: Copy source titles to filenames

Post by ColeValleyGirl » 23 Jan 2021 21:34

Have a look at the DEA Rename Source Media. It only does one source at a time so you will have to tinker with it to select multiple sources.

avatar
JoopvB
Superstar
Posts: 328
Joined: 02 May 2015 14:32
Family Historian: V7

Re: Copy source titles to filenames

Post by JoopvB » 23 Jan 2021 22:43

Thanks, I'll give it a try.

avatar
JoopvB
Superstar
Posts: 328
Joined: 02 May 2015 14:32
Family Historian: V7

Re: Copy source titles to filenames

Post by JoopvB » 25 Jan 2021 10:37

Based on the Rename Source Media plugin, I have written a plugin to rename the Media name and filename of a user selectable number of sources. I named it Rename Selected Source Media and in my projects it does what it's supposed to do.

The plugin is attached for anyone to try. Suggestions for improvements, bug fixes etc. are welcome.

N.B. The plugin can change filenames and does it without asking for confirmation. So, for safe testing, store a copy of the your test files somewhere else. Also, be aware that if another project links to a changed external filename, that link needs to be updated.
Attachments
Rename Selected Source Media.fh_lua
(4.59 KiB) Downloaded 86 times

User avatar
ColeValleyGirl
Megastar
Posts: 4854
Joined: 28 Dec 2005 22:02
Family Historian: V7
Location: Cirencester, Gloucestershire
Contact:

Re: Copy source titles to filenames

Post by ColeValleyGirl » 25 Jan 2021 10:49

Joop, it seems to run OK but it would be nice if the result set included a pointer to the source instead of the source title?

User avatar
ColeValleyGirl
Megastar
Posts: 4854
Joined: 28 Dec 2005 22:02
Family Historian: V7
Location: Cirencester, Gloucestershire
Contact:

Re: Copy source titles to filenames

Post by ColeValleyGirl » 25 Jan 2021 10:58

P.S. I do hope you're going to add it to the plugin store!

User avatar
ColeValleyGirl
Megastar
Posts: 4854
Joined: 28 Dec 2005 22:02
Family Historian: V7
Location: Cirencester, Gloucestershire
Contact:

Re: Copy source titles to filenames

Post by ColeValleyGirl » 25 Jan 2021 11:12

You might also want to warn users that 'Undo plugin updates' won't rename the media files -- it should be obvious, but perhaps worth underlining.

avatar
JoopvB
Superstar
Posts: 328
Joined: 02 May 2015 14:32
Family Historian: V7

Re: Copy source titles to filenames

Post by JoopvB » 25 Jan 2021 11:34

Thanks for checking and for the suggestions. See attached.

Yes, I'll add it to the store.
Attachments
Rename Selected Source Media.fh_lua
(4.59 KiB) Downloaded 98 times

User avatar
ColeValleyGirl
Megastar
Posts: 4854
Joined: 28 Dec 2005 22:02
Family Historian: V7
Location: Cirencester, Gloucestershire
Contact:

Re: Copy source titles to filenames

Post by ColeValleyGirl » 25 Jan 2021 11:40

Thanks, Joop. Retested and changes are fine.

Post Reply