Note that by default the script imports notes from the kindle.amazon.com/your_highlights web pages (which have the richest set of data fields, and allow for the creation of some useful hyperlinks in the DT records - jumping, for example, to the relevant passage in the OS X Kindle app).
The script will, however, also offer to import notes from the My Clipping.txt file on a Kindle device, or from any text file which uses the same format.
(The technically curious will find the current draft of the parsing logic in perl files inside the script bundle.
The HTML parsing uses the HTML::TokeParser library, and the TXT parsing uses Date::Parse
As far as I can see these libraries seem to be part of the standard OS X 10.6 perl installation …)
It might be helpful to see the full paths involved in the command lines which are throwing errors.
Could you email them to houthakker72, which is a gmail.com address ?
(Ver 0.19 bypasses the second error and defaults to English (for date parsing) if the .GlobalPreferences AppleCollationOrder setting can’t be read. It also places temporary files on the desktop, rather than inside the script bundle.)
(Ver 0.25 allows for clippings files which are delimited by 0d0a, and no longer chokes on unusual text patterns in title/author lines. It also filters out bookmarks, and, in the Kindle notes web-page parser, bypasses what appears to be a new source-saving bug in Safari.)
This looks wonderfully helpful. I successfully imported the annotations/notes from a first book. But when I ran the script on the highlights page for a second book, I ended up with a new group that contains the annotations from both the second and the first book. Am I doing something wrong.
I think I found the issue. When running the script on the highlights from Book 1, the script writes to a temporary file, “mytmpKN2html.html,” on the Desktop. When running the script for annotations from Book 2, it is writing to the same temp file, adding to those from Book 1, and importing all into DTP. If I manually delete “mytmpKN2html.html” between uses of the script, it behaves as expected.
Just chiming in to say that I hope you (or someone else) will be able to find time to update this, houthakker. It looks really useful and I can’t find anything else to do the same job (there is another script at digitalnotions.net/importing-kin … think-pro/ but I can’t get it to work for me).
I understand that a fork of this (updated to cope with the new structure of Amazon’s notes pages) is in preparation - the broken version is on Github, and we’re planning to pull the updates into it when its ready.
As mentioned by houthakker I’ve taken some time to look at this script since it was broken by Amazon’s new page layout. Finishing my ebooks and not being able to import my highlights into DEVONthink was such a pain that I tried to overcome my noob scripting abilities and finally made it work.
Please feel free to download the new version of the script and test it. The instructions are basically the same for the original script, except for the page you are going to navigate to in order to use it.
The highlight page for a specific book is now accessed from a link in the ebook popular highlights page: