* Evernote Plugin?

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.
User avatar
Jane
Site Admin
Posts: 8442
Joined: 01 Nov 2002 15:00
Family Historian: V7
Location: Somerset, England
Contact:

Evernote Plugin?

Post by Jane » 14 Aug 2013 07:24

I have written a small plugin to create Evernote Notes for selected individuals for To Do lists or Research notes.

Does anyone else use Evernote who would be interested in trying it our?

ID:7037
Jane
My Family History : My Photography "Knowledge is knowing that a tomato is a fruit. Wisdom is not putting it in a fruit salad."

avatar
simongatward
Silver
Posts: 5
Joined: 09 Aug 2012 13:24
Family Historian: V6.2
Location: Bedfordshire, England

Evernote Plugin?

Post by simongatward » 14 Aug 2013 13:36

I am a regular Evernote user and would be interested to try out your plugin.


Simon

User avatar
Jane
Site Admin
Posts: 8442
Joined: 01 Nov 2002 15:00
Family Historian: V7
Location: Somerset, England
Contact:

Evernote Plugin?

Post by Jane » 14 Aug 2013 14:12

It's still pretty basic at the moment.

If you run it with a person selected it will prompt for a title, comment and tag fields.

Please comma separate tags

The tags need to already exist in Evernote or they will be dropped.

There is a simple html template in the code to insert values into if you want more fields moved across to the note.

https://www.dropbox.com/s/kwm01mnp4qp21 ... 0Do.fh_lua
Jane
My Family History : My Photography "Knowledge is knowing that a tomato is a fruit. Wisdom is not putting it in a fruit salad."

avatar
arishmell
Famous
Posts: 102
Joined: 29 Jan 2005 19:13
Family Historian: V7

Evernote Plugin?

Post by arishmell » 15 Aug 2013 12:11

This could potentially be very useful, Jane.  For example, working on my iPad at the record office, when I can't run FH but can access Evernote via wi-fi.  (Currently I use a Named List in FH for research/to do notes, print a copy to PDF and store it in Dropbox, which has the advantage that I can access it even without wi-fi).

I've been trying it out this morning but find that no comment shows in the right hand pane, even when the note is selected.  The note itself seems to consist of a summary description of the person selected, cut off after a few lines and not expandable or displayed so I don't know if the comment is appended.

Image

Also, FH has twice crashed when using this plug-in, once when sending a note and secondly when closing the plug-in window.  The error report from the second event is below.  (Running Windows 7 Home Premium).

Problem signature:
 Problem Event Name:      APPCRASH
 Application Name:      Fh.exe
 Application Version:      5.0.9.3
 Application Timestamp:      5093c216
 Fault Module Name:      ntdll.dll
 Fault Module Version:      6.1.7601.17725
 Fault Module Timestamp:      4ec49b8f
 Exception Code:      c0150010
 Exception Offset:      000847db
 OS Version:      6.1.7601.2.1.0.768.3
 Locale ID:      2057
 Additional Information 1:      0a9e
 Additional Information 2:      0a9e372d3b4ad19135b953a78882e789
 Additional Information 3:      0a9e
 Additional Information 4:      0a9e372d3b4ad19135b953a78882e789
Maureen

Researching:
Waycott, Fewings, Piper, Burgoyne, Johns, Phillips, Paddon, Streat;
Morrish, Rowd*n, Pike, Lowder, Flood, Parsons and others.
All in glorious Devon!

User avatar
Jane
Site Admin
Posts: 8442
Joined: 01 Nov 2002 15:00
Family Historian: V7
Location: Somerset, England
Contact:

Evernote Plugin?

Post by Jane » 15 Aug 2013 14:26

I have not seen any crashes while I have been using it? Is there any pattern to when it fails? The only crash I know is if you load a new project while the plugin editor is open and then run the plugin.

I have had the 'blank' problem a couple of times, it's to do with the EN html processing.

When it creates the note it makes a file in the plugin folder in the project data folder called temp.html any chance you could send me a copy of the file so I can check the html with your data to janetaubman at gmail.com
Jane
My Family History : My Photography "Knowledge is knowing that a tomato is a fruit. Wisdom is not putting it in a fruit salad."

User avatar
tatewise
Megastar
Posts: 27088
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

Evernote Plugin?

Post by tatewise » 15 Aug 2013 14:38

P.S.
That 'known' crash problem only occurs if Tools > Preferences > General > Advanced > Auto-load Thumbnail Images When Opening Project is selected, and the images are still being loaded when the Plugin is Run.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

User avatar
Jane
Site Admin
Posts: 8442
Joined: 01 Nov 2002 15:00
Family Historian: V7
Location: Somerset, England
Contact:

Evernote Plugin?

Post by Jane » 15 Aug 2013 14:42

It occurred to me you might have special characters in your Project Name so I have added some code around those fields so please download the plugin again to see if it helps with the blanks
Jane
My Family History : My Photography "Knowledge is knowing that a tomato is a fruit. Wisdom is not putting it in a fruit salad."

avatar
arishmell
Famous
Posts: 102
Joined: 29 Jan 2005 19:13
Family Historian: V7

Evernote Plugin?

Post by arishmell » 15 Aug 2013 18:50

Thanks for the feedback, Jane and Tatewise.  There is a # and a & in my Project Name, and 'Auto-load Thumbnail Images When Opening Project' is ticked.  I don't know how long it takes to load these thumbnails, but FH had been running a few minutes when I used the plug-in, and it didn't crash the first couple of times I tried it.

I have downloaded the new plug-in, and the first two times I tried to use it, (using the same individual) FH crashed immediately on sending (and the note did not show up in Evernote).  The third time (using a different individual) was successful: the note appeared in Evernote and the individual record details and the comment showed in the right-hand pane.  Very impressive!  However, I copied and pasted the 'comment' from the Named List, and the html formatting code is displayed in the pane.

The fourth try, with FH still open after the successful third try but using the original individual, also failed with an instant crash.  Restarted and tried again with the same individual - success!  Sixth attempt also successful.

So there is no pattern at all with the crashes, but the display problem has been fixed.

I wonder if there is any way to tell Evernote which folder to file the note in?  They go to the default folder and then must be dragged to the specific folder, but weirdly, only some of the notes stay in the specific folder.  When I restart Evernote, they are only visible in All Notes.
Maureen

Researching:
Waycott, Fewings, Piper, Burgoyne, Johns, Phillips, Paddon, Streat;
Morrish, Rowd*n, Pike, Lowder, Flood, Parsons and others.
All in glorious Devon!

avatar
arishmell
Famous
Posts: 102
Joined: 29 Jan 2005 19:13
Family Historian: V7

Evernote Plugin?

Post by arishmell » 15 Aug 2013 18:59

Just tried again, with a new individual and FH still open after 2 successful attempts - CRASH. Tried twice more with the same individual - CRASH both times. Details below.

Problem signature:
Problem Event Name: APPCRASH
Application Name: Fh.exe
Application Version: 5.0.9.3
Application Timestamp: 5093c216
Fault Module Name: StackHash_7f86
Fault Module Version: 6.1.7601.17725
Fault Module Timestamp: 4ec49b8f
Exception Code: c0000374
Exception Offset: 000ce6c3
OS Version: 6.1.7601.2.1.0.768.3
Locale ID: 2057
Additional Information 1: 7f86
Additional Information 2: 7f86690bb389cdaac89f19d8b11693e0
Additional Information 3: b4c5
Additional Information 4: b4c548ab8da66a52aa8e2e451805599a
Maureen

Researching:
Waycott, Fewings, Piper, Burgoyne, Johns, Phillips, Paddon, Streat;
Morrish, Rowd*n, Pike, Lowder, Flood, Parsons and others.
All in glorious Devon!

User avatar
Jane
Site Admin
Posts: 8442
Joined: 01 Nov 2002 15:00
Family Historian: V7
Location: Somerset, England
Contact:

Evernote Plugin?

Post by Jane » 15 Aug 2013 20:29

I still can't get my copy to crash.

Can you try running the code in the editor and step through it to see when it fails.

Also can you check the temp.html file to see if that has a fault.

Another option is to export just one of the people who is causing the problem. I have exported lot's of times while developing the plugin with no crash.

Does the program crash before you get prompted? If so one 'advanced' thing it does is to read the registry to check where Evernote is, so it might be an AntiVirus program kicking in sometimes. Can you try turning off the AV or running in safe mode to see if that's the problem which could explain why I can't reproduce it.

If that is the problem I can easily make that something you key in.

The folder can't be controlled the way I am loading Evernote at the moment, but I can try using the ENSCRIPT option instead which might be able to, but when I used it earlier it kept attaching the note as a file rather than importing it as a note.
Jane
My Family History : My Photography "Knowledge is knowing that a tomato is a fruit. Wisdom is not putting it in a fruit salad."

User avatar
tatewise
Megastar
Posts: 27088
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

Evernote Plugin?

Post by tatewise » 15 Aug 2013 21:34

Is it worth trying the Plugin on the Family Historian Sample Project to try and determine if the problem is Project related or system wide?
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

avatar
arishmell
Famous
Posts: 102
Joined: 29 Jan 2005 19:13
Family Historian: V7

Evernote Plugin?

Post by arishmell » 16 Aug 2013 10:42

Sorry Jane, I'm totally ignorant of programming and have absolutely no idea what you mean by 'running the code in the editor and step through it to see when it fails'. Nor would I be able to tell if the html.temp file has a fault.

Tatewise, your idea of using the Sample Project is a good one. I tried it this morning - the first person selected worked fine, the second crashed. On restarting, I was able to load 3 more notes before it crashed again. I also tried my own project - still crashing with no rhyme or reason. Most crashes happen when I go to upload a note; one happened when I tried to run the plug-in.

My anti-virus program is AVG Free; and I also have SugarSync running in the background which could be a factor. I'll try turning that off and see what happens.

The linebreak formatting shows up in the comment whether I copy/paste or type directly into the box.

One weird thing - I mentioned that when I try to drag the notes into a folder on Evernote, they don't stay there. Only one of the notes I created has stayed in the folder (nothing different about it at all) and this is the only note I can see on the iPad. Six other notes and this 'odd' one all show on the All Notes tab on my PC, but not on the iPad, despite syncing.

Thanks for all the help'
Maureen
Maureen

Researching:
Waycott, Fewings, Piper, Burgoyne, Johns, Phillips, Paddon, Streat;
Morrish, Rowd*n, Pike, Lowder, Flood, Parsons and others.
All in glorious Devon!

avatar
arishmell
Famous
Posts: 102
Joined: 29 Jan 2005 19:13
Family Historian: V7

Evernote Plugin?

Post by arishmell » 16 Aug 2013 10:47

I've just noticed that Evernote has created a special folder called Unsynced Notes and has put all my notes in there! All except this one odd one which has stayed in the Genealogy folder. No amount of pressing the Sync button has made those notes sync.
Maureen

Researching:
Waycott, Fewings, Piper, Burgoyne, Johns, Phillips, Paddon, Streat;
Morrish, Rowd*n, Pike, Lowder, Flood, Parsons and others.
All in glorious Devon!

User avatar
Jane
Site Admin
Posts: 8442
Joined: 01 Nov 2002 15:00
Family Historian: V7
Location: Somerset, England
Contact:

Evernote Plugin?

Post by Jane » 16 Aug 2013 11:26

Mine get imported to InBox so I guess there must be a setting somewhere in the Evernote settings, if you drag them up to a normal folder my guess is they will sync.

Would it be possible for me to do a join me to your system to see if I can work out where it's crashing.

If you can send me a phone number and good time to call I can see if I can work out where the problem is.
Jane
My Family History : My Photography "Knowledge is knowing that a tomato is a fruit. Wisdom is not putting it in a fruit salad."

avatar
arishmell
Famous
Posts: 102
Joined: 29 Jan 2005 19:13
Family Historian: V7

Evernote Plugin?

Post by arishmell » 16 Aug 2013 11:52

More experimentation. I turned off SugarSync, and at first that seemed to solve the problem as I was able to create several notes both from my own project and the sample project. I was also able to get some of them to sync in Evernote.

However I noticed that the notes that were synced (both from my own project and the sample project) had only a line or two in the comments, which Evernote rendered as a single line even if they were separate in the original (both typed nonsense and copied/pasted from the Named List). The notes that would not sync (again, both from my own project and the sample project) had longer notes in paragraphs or lists, copied and pasted from the Named List.

Experimenting again with the Sample Project, I was attempting to find a format Evernote was comfortable with when FH ceased working again.
Maureen

Researching:
Waycott, Fewings, Piper, Burgoyne, Johns, Phillips, Paddon, Streat;
Morrish, Rowd*n, Pike, Lowder, Flood, Parsons and others.
All in glorious Devon!

User avatar
capnkeith
Famous
Posts: 190
Joined: 09 Mar 2009 17:15
Family Historian: V6.2
Location: Suffolk, England

Re: Evernote Plugin?

Post by capnkeith » 27 Sep 2013 10:52

Hi Jane,

Are you still working on the Evernote plugin? The reason I ask is that from your earlier post "Call to iPad users" it has prompted me to have a go with Evernote. I have downloaded the plugin from your post above and I can get one ToDo to go into Evernote. Is that correct or should it transfer all of them. Next will it transfer any amendments back to FH? Apologies if that is a silly question but I am very new to Evernote and Plugins.

One last thing what I see in Evernote is the info from FH then "Comment" and under that code for a line break "<br/>"
Keith

User avatar
capnkeith
Famous
Posts: 190
Joined: 09 Mar 2009 17:15
Family Historian: V6.2
Location: Suffolk, England

Re: Evernote Plugin?

Post by capnkeith » 27 Sep 2013 11:18

Ooops they were both silly questions :oops:

I jumped to the conclusion that the plugin was using the ToDo Query, but just realised after reading though again that it is just using the highlighted name to transfer.

How does the plugin select which info to transfer?
Keith

User avatar
Jane
Site Admin
Posts: 8442
Joined: 01 Nov 2002 15:00
Family Historian: V7
Location: Somerset, England
Contact:

Re: Evernote Plugin?

Post by Jane » 27 Sep 2013 11:42

I have not done anything on it lately as we never got to the bottom of arishmell's problem.

At the very beginning of the source code is a template for the note to be exported to Evernote which looks like this:

Code: Select all

<h2>{title}</h2>
<h3>{~.NAME} (ID:{ref})</h3>
<p>
<br />{~.BIRT}
<br />{~.CENS}
<br />{~.DEAT}
<br />Spouse {~.~SPOU[1]>}
</p>
<p>Project: <a href="file:///{project}">{projectname}</a></p>
<h3>Comment</h3>
<p>{comment}</p>
</en-note>
{closeb}></content>
{tags}
</note>
</en-export>
If you want to add extra text fields you can simply amend this template to include other information. Using normal data references, just replacing INDI. with ~. and wrapping it in curly brackets.

It's not a two way process, it's really just a way of adding things to do into Evernote.
Jane
My Family History : My Photography "Knowledge is knowing that a tomato is a fruit. Wisdom is not putting it in a fruit salad."

User avatar
capnkeith
Famous
Posts: 190
Joined: 09 Mar 2009 17:15
Family Historian: V6.2
Location: Suffolk, England

Re: Evernote Plugin?

Post by capnkeith » 27 Sep 2013 20:08

Hi Jane,

Well the plugin appears to work ok for me at least. A few more questions now I have had a play with it, please.

Where do I go to to remove the erroneous <br /> in the Comment section?

Is it possible to direct the input to EverNote into a particular Notebook?

I am thinking of using Tags for birth, census, marriage, death etc and after Comments a heading called Search Results, that would be used in EverNote to input results.

Would it be possible to include a marriage date with spouse?
Keith

User avatar
Jane
Site Admin
Posts: 8442
Joined: 01 Nov 2002 15:00
Family Historian: V7
Location: Somerset, England
Contact:

Re: Evernote Plugin?

Post by Jane » 28 Sep 2013 08:20

The api for Evernote I am using does not allow me to specify a notebook, but I think you can set the default notebook in evernote for items added by Evernote.

You can add in the sections by editing the html template in the Source code as I suggested before, if you download from this link I have made some improvements including adding the first two spouse with their marriage dates so you can see how the template works (it's just a simple html template) and going forward I will add a button to allow you to edit the template outside of the code.
Jane
My Family History : My Photography "Knowledge is knowing that a tomato is a fruit. Wisdom is not putting it in a fruit salad."

User avatar
capnkeith
Famous
Posts: 190
Joined: 09 Mar 2009 17:15
Family Historian: V6.2
Location: Suffolk, England

Re: Evernote Plugin?

Post by capnkeith » 28 Sep 2013 08:43

Yes I have made a few alteration in the HTML section. I even found how to remove that <br /> that was annoying me. I haven't sussed how to add another subject title to go below "Comments" where in EverNote i could add my research results.
Keith

User avatar
capnkeith
Famous
Posts: 190
Joined: 09 Mar 2009 17:15
Family Historian: V6.2
Location: Suffolk, England

Re: Evernote Plugin?

Post by capnkeith » 28 Sep 2013 09:14

I like the new one. That's close to what I was thinking off, Thanks.

A small problem though, I cannot get Evernote to synchronise between PC and iPad or Android phone. It will still sync though if I use the old plugin.
Keith

User avatar
Jane
Site Admin
Posts: 8442
Joined: 01 Nov 2002 15:00
Family Historian: V7
Location: Somerset, England
Contact:

Re: Evernote Plugin?

Post by Jane » 28 Sep 2013 09:24

Found it, it imported OK but objected to <br> I have replaced them with <br /> and it seems to sync OK
Jane
My Family History : My Photography "Knowledge is knowing that a tomato is a fruit. Wisdom is not putting it in a fruit salad."

User avatar
capnkeith
Famous
Posts: 190
Joined: 09 Mar 2009 17:15
Family Historian: V6.2
Location: Suffolk, England

Re: Evernote Plugin?

Post by capnkeith » 28 Sep 2013 10:33

Yes that works for me. Thanks very much.

The <br /> that I disposed of was in line 60 or 61. But I notice that it is in the new plugins but does not now show up in the Comment box?

To add the "Results" heading was more than just adding to the HTML template wasn't it? I had tried that but it didn't work, so assumed some code had to be added elsewhere?
Keith

User avatar
Jane
Site Admin
Posts: 8442
Joined: 01 Nov 2002 15:00
Family Historian: V7
Location: Somerset, England
Contact:

Re: Evernote Plugin?

Post by Jane » 28 Sep 2013 10:35

To add the "Results" heading was more than just adding to the HTML template wasn't it? I had tried that but it didn't work, so assumed some code had to be added elsewhere?
No it was just to add it to the template. I am working on an enhancement at the moment so you can edit the template more easily.

I have added a Button to allow you to edit the template which is on a project by project basis.
Jane
My Family History : My Photography "Knowledge is knowing that a tomato is a fruit. Wisdom is not putting it in a fruit salad."

Post Reply