* Plugin: Check for Unlinked Media
- gerrynuk
- Megastar
- Posts: 565
- Joined: 25 Apr 2007 09:21
- Family Historian: V6
- Location: Welwyn Garden City
- Contact:
Plugin: Check for Unlinked Media
I have added a note to the page for this plugin on the Family Historian site asking if it is possible to amend the plugin to exclude the folders created by Picasa. At the moment all the Picasa thumbnails show up as unlinked media, which completely swamps the actual unlinked media.
Would anyone else find this useful?
ID:6898
Would anyone else find this useful?
ID:6898
- gerrynuk
- Megastar
- Posts: 565
- Joined: 25 Apr 2007 09:21
- Family Historian: V6
- Location: Welwyn Garden City
- Contact:
Plugin: Check for Unlinked Media
I wonder if some kind person who is familiar with Lua programming could advise me how I could amend Jane's excellent plugin. I would like the search to exclude any folders called '.picasaoriginals' but don't know what code to use or where to put it!
- Jane
- Site Admin
- Posts: 8442
- Joined: 01 Nov 2002 15:00
- Family Historian: V7
- Location: Somerset, England
- Contact:
Plugin: Check for Unlinked Media
Do you know what version of Picasa creates those folders, I have it installed and don't have any folders with that name.
edit: To answer my own question, a google search shows it's where Picassa stores old copies of files you have edited. So you might actually be better to move the folders out of the project or just delete them.
edit: To answer my own question, a google search shows it's where Picassa stores old copies of files you have edited. So you might actually be better to move the folders out of the project or just delete them.
Jane
My Family History : My Photography "Knowledge is knowing that a tomato is a fruit. Wisdom is not putting it in a fruit salad."
My Family History : My Photography "Knowledge is knowing that a tomato is a fruit. Wisdom is not putting it in a fruit salad."
- gerrynuk
- Megastar
- Posts: 565
- Joined: 25 Apr 2007 09:21
- Family Historian: V6
- Location: Welwyn Garden City
- Contact:
Plugin: Check for Unlinked Media
I am using Version 3.9.16.37 for Mac.
Having carried out a little experimentation it appears that this version of Picasa will always create a folder called '.picasaoringinals' within the folder holding the image being edited. (I renamed the original folder but Picasa just created a new folder.) This means that there is an additional Picasa thumbnail for every edited image stored in an otherwise hidden folder. Your plugin indexes all these thumbnails and swamps the output with all the thumbnails which are not, of course, linked to FH.
Having carried out a little experimentation it appears that this version of Picasa will always create a folder called '.picasaoringinals' within the folder holding the image being edited. (I renamed the original folder but Picasa just created a new folder.) This means that there is an additional Picasa thumbnail for every edited image stored in an otherwise hidden folder. Your plugin indexes all these thumbnails and swamps the output with all the thumbnails which are not, of course, linked to FH.
- tatewise
- Megastar
- Posts: 27088
- Joined: 25 May 2010 11:00
- Family Historian: V7
- Location: Torbay, Devon, UK
- Contact:
Plugin: Check for Unlinked Media
Sorry to jump into this thread, but Gerry you could try the following edit to the Plugin.
Change the function buildfilelist() that starts on line 79.
Change line 86 if attr.mode == 'file' then as follows:
if attr.mode == 'file' and not filename:match('picasaoriginals\') then
This should exclude any file paths with folder names that end with 'picasaoriginals'.
[EDIT] Line numbers corrected!
Change the function buildfilelist() that starts on line 79.
Change line 86 if attr.mode == 'file' then as follows:
if attr.mode == 'file' and not filename:match('picasaoriginals\') then
This should exclude any file paths with folder names that end with 'picasaoriginals'.
[EDIT] Line numbers corrected!
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry
- gerrynuk
- Megastar
- Posts: 565
- Joined: 25 Apr 2007 09:21
- Family Historian: V6
- Location: Welwyn Garden City
- Contact:
Plugin: Check for Unlinked Media
Thank you very much, Tatewise, that works a treat.
Just one small point, the relevant code is on line 86 in my version which is v1.7
Just one small point, the relevant code is on line 86 in my version which is v1.7
- johnmorrisoniom
- Megastar
- Posts: 882
- Joined: 18 Dec 2008 07:40
- Family Historian: V7
- Location: Isle of Man
Plugin: Check for Unlinked Media
As an aside to this. I always edit my media in a separate location to my projects, before copying them into a project.
If you work this way with picassa, you will not get the problem with the thumbnails in your project (which also increase the size of what's in the folders).
If you work this way with picassa, you will not get the problem with the thumbnails in your project (which also increase the size of what's in the folders).
- gerrynuk
- Megastar
- Posts: 565
- Joined: 25 Apr 2007 09:21
- Family Historian: V6
- Location: Welwyn Garden City
- Contact:
Plugin: Check for Unlinked Media
Thanks for the tip. I just find it easier to put the images straight into the project and edit them before (or after) I link them to FH. It also means it is easy to check - using Jane's plugin - which images I have still to link. If the images were not in the project that option wouldn't be available without further amending the plugin.johnmorrisoniom said:
As an aside to this. I always edit my media in a separate location to my projects, before copying them into a project.
If you work this way with picassa, you will not get the problem with the thumbnails in your project (which also increase the size of what's in the folders).
- gerrynuk
- Megastar
- Posts: 565
- Joined: 25 Apr 2007 09:21
- Family Historian: V6
- Location: Welwyn Garden City
- Contact:
Re: Plugin: Check for Unlinked Media
This modification was woking but having made the change to V1.7 of the plugin and tried to run it in FH Version 6 I am getting the following error message.tatewise wrote:Sorry to jump into this thread, but Gerry you could try the following edit to the Plugin.
Change the function buildfilelist() that starts on line 79.
Change line 86 if attr.mode == 'file' then as follows:
if attr.mode == 'file' and not filename:match('picasaoriginals\') then
This should exclude any file paths with folder names that end with 'picasaoriginals'.
[EDIT] Line numbers corrected!
- tatewise
- Megastar
- Posts: 27088
- Joined: 25 May 2010 11:00
- Family Historian: V7
- Location: Torbay, Devon, UK
- Contact:
Re: Plugin: Check for Unlinked Media
Gerry, the folder name should be 'picasaoriginals\\' with double backslash.
The same error message occurs in FH V5, so you must have worked out how to fix it yourself, from a similar example a few lines later.
The explanation is that backslash \ is an escape character.
It prefixes special cases such as \n = newline, \t = tab, \" = quote, \123 = character with code 123, etc.
So to obtain an actual backslash requires two \\ backslashes.
Whereas \' = apostrophe in the string, and there is no apostrophe to terminate the string.
The same error message occurs in FH V5, so you must have worked out how to fix it yourself, from a similar example a few lines later.
The explanation is that backslash \ is an escape character.
It prefixes special cases such as \n = newline, \t = tab, \" = quote, \123 = character with code 123, etc.
So to obtain an actual backslash requires two \\ backslashes.
Whereas \' = apostrophe in the string, and there is no apostrophe to terminate the string.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry
- gerrynuk
- Megastar
- Posts: 565
- Joined: 25 Apr 2007 09:21
- Family Historian: V6
- Location: Welwyn Garden City
- Contact:
Re: Plugin: Check for Unlinked Media
Thanks for that Mike. I don't remember having to add the second backslash but it is some time since I ran the plugin. Anyway, all seems to OK now.