<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>cjthomas</title>
	<atom:link href="http://www.cjthomas.org/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.cjthomas.org</link>
	<description>only the shallow know themselves</description>
	<lastBuildDate>Thu, 30 Jul 2009 02:59:35 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Import Kindle Clippings to Evernote</title>
		<link>http://www.cjthomas.org/2009/07/import-kindle-clippings-to-evernote/</link>
		<comments>http://www.cjthomas.org/2009/07/import-kindle-clippings-to-evernote/#comments</comments>
		<pubDate>Thu, 30 Jul 2009 02:59:35 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[applescript]]></category>
		<category><![CDATA[evernote]]></category>
		<category><![CDATA[imac]]></category>
		<category><![CDATA[kindle]]></category>

		<guid isPermaLink="false">http://www.cjthomas.org/?p=40</guid>
		<description><![CDATA[Attention Geeks: here is a crude, incomplete and not exactly terrific script I wrote that will import your &#8220;my clippings&#8221; file from your Kindle into Evernote using AppleScript.  It&#8217;s really a terrible hack, but it gets the job done &#8211; at least enough to include your highlights, clipped articles and other notes into Evernote to [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft wp-image-41" style="margin: 10px;" title="bezos_kindle" src="http://www.cjthomas.org/wp-content/uploads/2009/07/bezos_kindle.jpg" alt="bezos_kindle" width="181" height="240" />Attention Geeks: here is a crude, incomplete and not exactly terrific script I wrote that will import your &#8220;my clippings&#8221; file from your Kindle into Evernote using AppleScript.  It&#8217;s really a terrible hack, but it gets the job done &#8211; at least enough to include your highlights, clipped articles and other notes into Evernote to make the universal search thing happen.</p>
<p>Pros: simple, works, open source<a href="http://www.evernote.com" target="_blank"><img class="alignright size-full wp-image-42" title="evernote" src="http://www.cjthomas.org/wp-content/uploads/2009/07/evernote.gif" alt="evernote" width="228" height="60" /></a></p>
<p>Cons: the kindle seems to strip all of the article formatting, so the imported articles are a  big ugly mess.</p>
<p>Wish List: auto-import when device is connected, better formatting (paragraph breaks would be really, really nice)</p>
<p><span id="more-40"></span></p>
<p>Here&#8217;s the code:</p>
<blockquote>
<pre>(*
kindle-to-evernote - Import Kindle "My Clippings" into Evernote

This folder action will import "My Clippings.txt" files from the Kindle into Evernote's default notebook, with the tag 'kindle'

source: www.cjthomas.org;  please let me know if you make any cool improvements
*)

set myFile to choose file
import_kindle(myFile)

on adding folder items to this_folder after receiving these_items
 try
 repeat with i from 1 to number of items in these_items
 set this_item to item i of these_items
 set the item_info to the info for this_item
 if (alias of the item_info is false and the file name of the item_info is "My Clippings.txt") then
 import_kindle_item(this_item)
 end if
 end repeat
 on error error_message number error_number
 if the error_number is not -128 then
 tell application "Finder"
 activate
 display dialog error_message buttons {"Cancel"} default button 1 giving up after 120
 end tell
 end if
 end try
end adding folder items to

-- subroutine to import file

on import_kindle(myKindleFile)
 set fp to open for access myKindleFile

 repeat
 try
 set eSource to read fp until "
" as text

 set two to read fp until "
" as text

 set x to offset of " | " in two
 set eType to text 3 through x of two
 set eDate to text (x + 12) through end of two

 set three to read fp until "
" as text
 set eNote to read fp until "
" as text
 set five to read fp until "
" as text

 set eAdd to offset of "Bookmark" in eType

 if (eAdd is equal to 0) then
 tell application "Evernote"
 set result to create note with text eNote title eSource tags "kindle" created date eDate
 set result's source URL to eType

 end tell
 end if
 on error
 close access fp
 exit repeat
 end try
 end repeat
end import_kindle</pre>
</blockquote>
<p>Let me know if you make any improvements, it could sure use some assistance in the auto-detect/import (when the Kindle is connected to the Mac) and formatting departments!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cjthomas.org/2009/07/import-kindle-clippings-to-evernote/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Kate Gaffney</title>
		<link>http://www.cjthomas.org/2009/03/kate-gaffney/</link>
		<comments>http://www.cjthomas.org/2009/03/kate-gaffney/#comments</comments>
		<pubDate>Wed, 18 Mar 2009 20:04:14 +0000</pubDate>
		<dc:creator>mobile</dc:creator>
				<category><![CDATA[Music]]></category>
		<category><![CDATA[mobile]]></category>
		<category><![CDATA[SxSW]]></category>

		<guid isPermaLink="false">http://www.cjthomas.org/2009/03/kate-gaffney/</guid>
		<description><![CDATA[
]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.cjthomas.org/wp-content/uploads/2009/03/p-640-480-9c48c800-f822-4eca-bc59-6572e045e564.jpeg"><img src="http://www.cjthomas.org/wp-content/uploads/2009/03/p-640-480-9c48c800-f822-4eca-bc59-6572e045e564.jpeg" alt="" width="225" height="300" class="alignnone size-full wp-image-364" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.cjthomas.org/2009/03/kate-gaffney/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Austin Java Company</title>
		<link>http://www.cjthomas.org/2009/03/austin-java-company/</link>
		<comments>http://www.cjthomas.org/2009/03/austin-java-company/#comments</comments>
		<pubDate>Wed, 18 Mar 2009 14:33:59 +0000</pubDate>
		<dc:creator>mobile</dc:creator>
				<category><![CDATA[Travel]]></category>
		<category><![CDATA[mobile]]></category>
		<category><![CDATA[Austin]]></category>
		<category><![CDATA[coffee]]></category>
		<category><![CDATA[SxSW]]></category>

		<guid isPermaLink="false">http://www.cjthomas.org/2009/03/austin-java-company/</guid>
		<description><![CDATA[I&#8217;m at the Austin Java Company with Paul, enjoying an endless cup of java brew.  

]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m at the Austin Java Company with Paul, enjoying an endless cup of java brew.  </p>
<p><a href="http://www.cjthomas.org/wp-content/uploads/2009/03/p-640-480-adc5fa99-9873-4b41-bfd1-2c295166da75.jpeg"><img src="http://www.cjthomas.org/wp-content/uploads/2009/03/p-640-480-adc5fa99-9873-4b41-bfd1-2c295166da75.jpeg" alt="" width="225" height="300" class="alignnone size-full wp-image-364" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.cjthomas.org/2009/03/austin-java-company/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SxSW</title>
		<link>http://www.cjthomas.org/2009/03/sxsw/</link>
		<comments>http://www.cjthomas.org/2009/03/sxsw/#comments</comments>
		<pubDate>Tue, 17 Mar 2009 12:53:47 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Travel]]></category>
		<category><![CDATA[Austin]]></category>
		<category><![CDATA[SxSW]]></category>

		<guid isPermaLink="false">http://www.cjthomas.org/?p=21</guid>
		<description><![CDATA[I&#8217;m headed to Austin today with Paul, and we&#8217;re looking forward to our Palo Duro Official Unofficial Showcase at Waterloo Icehouse on Wednesday night (RSVP to facebook event here).  If you are in the area, drop on by!
]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m headed to Austin today with Paul, and we&#8217;re looking forward to our <strong>Palo Duro Official Unofficial Showcase</strong> at Waterloo Icehouse on Wednesday night (RSVP to <a href="http://www.facebook.com/home.php#/ical/event.php?eid=53714644021">facebook event here</a>).  If you are in the area, drop on by!</p>
<a href="http://maps.google.com/maps?f=q&amp;hl=&amp;geocode=&amp;q=30.272008,-97.754116&amp;ie=UTF8&amp;ll=30.272008,-97.754116&amp;t=h&amp;z=18&amp;maptype=G_HYBRID_MAP" title="Austin, TX"><img src="http://maps.google.com/staticmap?markers=30.272008,-97.754116,red&amp;zoom=18&amp;size=300x150&amp;key=ABQIAAAAdzPW8mq5y_3gFX8yUXS0eBSl0--GcZj5187VqPWwNYttFVNZBxQOb2g6Yf0MK5LU3AptrmJV-xauTw&amp;hl=" alt="Austin, TX" title="Austin, TX" /></a>
]]></content:encoded>
			<wfw:commentRss>http://www.cjthomas.org/2009/03/sxsw/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
