<?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>chasing daisies... &#187; Code</title>
	<atom:link href="http://daisychase.net/blog/category/code/feed/" rel="self" type="application/rss+xml" />
	<link>http://daisychase.net/blog</link>
	<description>GTD, GSD, notebooks and organisational ephemera</description>
	<lastBuildDate>Tue, 27 Jul 2010 20:27:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>SNYS: latest progress</title>
		<link>http://daisychase.net/blog/2009/12/21/snys-latest-progress/</link>
		<comments>http://daisychase.net/blog/2009/12/21/snys-latest-progress/#comments</comments>
		<pubDate>Mon, 21 Dec 2009 13:28:18 +0000</pubDate>
		<dc:creator>archon</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[snys]]></category>

		<guid isPermaLink="false">http://daisychase.net/blog/?p=84</guid>
		<description><![CDATA[Sorry, I&#8217;ve been tremendously busy recently and haven&#8217;t had much time to work on the existing bugs in SNYS. I do hope to be able to patch a few up this Christmas, and also write some diagnostic scripts which may help track down why some people just can&#8217;t use it at all. (This is still [...]]]></description>
			<content:encoded><![CDATA[<p>Sorry, I&#8217;ve been tremendously busy recently and haven&#8217;t had much time to work on the existing bugs in SNYS. I do hope to be able to patch a few up this Christmas, and also write some diagnostic scripts which may help track down why some people just can&#8217;t use it at all. (This is still really baffling me.)</p>

<p>I have a new version which traps some syncing bugs more effectively for those who <em>can</em> use it, which I will upload later today.</p>
]]></content:encoded>
			<wfw:commentRss>http://daisychase.net/blog/2009/12/21/snys-latest-progress/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Mass add keywords to iPhoto with Launchbar</title>
		<link>http://daisychase.net/blog/2009/10/25/mass-add-keywords-to-iphoto/</link>
		<comments>http://daisychase.net/blog/2009/10/25/mass-add-keywords-to-iphoto/#comments</comments>
		<pubDate>Sun, 25 Oct 2009 13:57:23 +0000</pubDate>
		<dc:creator>archon</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Applescript]]></category>
		<category><![CDATA[iphoto]]></category>

		<guid isPermaLink="false">http://daisychase.net/blog/?p=77</guid>
		<description><![CDATA[I was playing with iPhoto this morning and decided that, really, it would be better to properly tag my photos and use smart collections, rather than have them in unwieldy folders which clutter up the left sidebar, and which I can&#8217;t delete without losing the associated classifications. (If I don&#8217;t keep a folder called &#8220;Cats&#8221; [...]]]></description>
			<content:encoded><![CDATA[<p>I was playing with iPhoto this morning and decided that, really, it would be better to properly tag my photos and use smart collections, rather than have them in unwieldy folders which clutter up the left sidebar, and which I can&#8217;t delete without losing the associated classifications. (If I don&#8217;t keep a folder called &#8220;Cats&#8221; current, I&#8217;ll never be able to find all pictures of cats again, unless the next version of iPhoto includes an automatic cat recognition routine, which actually isn&#8217;t all that bizarre an idea, but anyway.)</p>

<p>The first thing I discovered was that I couldn&#8217;t see any way to add tags &#8211; or rather, keywords, as iPhoto calls them &#8211; <em>en masse</em>, which seemed very odd. (It may have a mechanism which I didn&#8217;t find.) But that&#8217;s what we have Applescript for isn&#8217;t it?</p>

<p><span id="more-77"></span></p>

<p><strong><em>Edit</em></strong><em>: after writing this post I was informed that Cmd-K brings up a list of tags in iPhoto, which can be used to mass tag photos. However, I shall keep this blog post here because (a) the Launchbar integration means it can easily be done via the keyboard and (b) the script itself might be useful for people as a starting point for keyword manipulation in iPhoto.</em></p>

<p>So I started writing a script to do this. The second thing that I noticed was that, in some cases, keywords just were not being added to pictures, and I found that iPhoto silently refuses to add keywords via Applescript which don&#8217;t actually exist in its list of keywords. A bit annoying, but surely, easy to overcome &#8211; after all, we can get a list of all keywords in iPhoto, so just check that first, and if the keyword doesn&#8217;t exist, add it before trying to tag the photos. Surely.</p>

<p>The third thing that I learnt this morning was that it seems to be entirely impossible to add new keywords to iPhoto via Applescript. You just can&#8217;t do it &#8211; you can&#8217;t make a new keyword at all, it kicks up errors when you try, including the ever helpful &#8220;AppleEvent failed&#8221;.</p>

<p>So the result is a script which <em>does</em> mass add keywords, but only keywords which already exist. It warns you if they don&#8217;t rather than just failing; you&#8217;ll have to add them to one photo manually first. But I have now replaced my manual folders with smart folders and events, and my sidebar looks a lot tidier. I also now find it a lot quicker to tag photos using the keyboard only, via Launchbar.</p>

<p>Here&#8217;s the script to download:
<ul>
    <li><a href="http://daisychase.net/blog/wp-content/uploads/2009/10/iPhoto-mass-add-keywords.zip">Applescript: iPhoto mass add keywords</a></li>
</ul>
You can run the script itself to tag the selected pictures and specify the keyword via a dialog box, or you can run the script using Launchbar and specify the keyword within Launchbar, by the usual method of finding the script, pressing space, typing the keyword and pressing return.</p>
]]></content:encoded>
			<wfw:commentRss>http://daisychase.net/blog/2009/10/25/mass-add-keywords-to-iphoto/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Simplenote Yojimbo Sync v0.31</title>
		<link>http://daisychase.net/blog/2009/10/24/simplenote-yojimbo-sync-v0-31/</link>
		<comments>http://daisychase.net/blog/2009/10/24/simplenote-yojimbo-sync-v0-31/#comments</comments>
		<pubDate>Sat, 24 Oct 2009 11:56:08 +0000</pubDate>
		<dc:creator>archon</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[snys]]></category>

		<guid isPermaLink="false">http://daisychase.net/blog/?p=67</guid>
		<description><![CDATA[It barely deserves a whole new post, but in case anyone is following this tag, I&#8217;ve added a version 0.31 of SNYS with a few new debugging checks in it now. I won&#8217;t put comments on here &#8211; please add any you have to the v0.3 post.]]></description>
			<content:encoded><![CDATA[<p>It barely deserves a whole new post, but in case anyone is following this tag, I&#8217;ve added a version 0.31 of SNYS with a few new debugging checks in it now. I won&#8217;t put comments on here &#8211; please add any you have to <a href="http://daisychase.net/blog/2009/10/12/simplenote-yojimbo-sync-v0-3/">the v0.3 post</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://daisychase.net/blog/2009/10/24/simplenote-yojimbo-sync-v0-31/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Simplenote Yojimbo Sync v0.3(1)</title>
		<link>http://daisychase.net/blog/2009/10/12/simplenote-yojimbo-sync-v0-3/</link>
		<comments>http://daisychase.net/blog/2009/10/12/simplenote-yojimbo-sync-v0-3/#comments</comments>
		<pubDate>Mon, 12 Oct 2009 20:25:17 +0000</pubDate>
		<dc:creator>archon</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Applescript]]></category>
		<category><![CDATA[simplenote]]></category>
		<category><![CDATA[snys]]></category>
		<category><![CDATA[sync]]></category>
		<category><![CDATA[yojimbo]]></category>

		<guid isPermaLink="false">http://daisychase.net/blog/2009/10/12/simplenote-yojimbo-sync-v0-3/</guid>
		<description><![CDATA[As the previous post suggest I&#8217;ve uploaded a new version of SNYS, 0.3. This has some more extensive logging options as some people are still having issues, but for those who aren&#8217;t, this version stays running and repeats the sync once per hour. You might wish to have it run on startup if you are [...]]]></description>
			<content:encoded><![CDATA[<p>As the previous post suggest I&#8217;ve uploaded a new version of SNYS, 0.3. This has some more extensive logging options as some people are <em>still</em> having issues, but for those who aren&#8217;t, this version stays running and repeats the sync once per hour. You might wish to have it run on startup if you are that way inclined; I am.</p>

<p><a href="http://daisychase.net/blog/simplenote-yojimbo-sync/">Download from the dedicated page as usual</a>.</p>

<p><em>Edit</em>: Please can you post (a) the version of OS X you are using and (b) the version of Yojimbo you are using, when reporting a bug? I have a feeling that there may be some subtle Applescript differences involved here, and even if there aren&#8217;t, I&#8217;d like to eliminate that possibility.</p>
]]></content:encoded>
			<wfw:commentRss>http://daisychase.net/blog/2009/10/12/simplenote-yojimbo-sync-v0-3/feed/</wfw:commentRss>
		<slash:comments>27</slash:comments>
		</item>
		<item>
		<title>Applescript and regular actions</title>
		<link>http://daisychase.net/blog/2009/10/12/applescript-and-regular-actions/</link>
		<comments>http://daisychase.net/blog/2009/10/12/applescript-and-regular-actions/#comments</comments>
		<pubDate>Mon, 12 Oct 2009 13:28:07 +0000</pubDate>
		<dc:creator>archon</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Applescript]]></category>
		<category><![CDATA[snys]]></category>

		<guid isPermaLink="false">http://daisychase.net/blog/2009/10/12/applescript-and-regular-actions/</guid>
		<description><![CDATA[I was wondering how I could have Simplenote Yojimbo Sync (henceforth, SNYS) running regularly, and thinking of all sorts of methods involving launchd, but actually it seems very simple to do with Applescript, which is where I should have looked in the first place. From p76 of the Applescript Language Guide: Stay-open script applications can [...]]]></description>
			<content:encoded><![CDATA[<p>I was wondering how I could have Simplenote Yojimbo Sync (henceforth, SNYS) running regularly, and thinking of all sorts of methods involving launchd, but actually it seems very simple to do with Applescript, which is where I should have looked in the first place.</p>

<p>From p76 of the Applescript Language Guide:</p>

<blockquote>Stay-open script applications can perform periodic actions, even in the background, as long as the script application is running.</blockquote>

<p>What I need therefore is an <em>idle</em> handler.</p>

<blockquote>If a stay-open script application includes an idle handler, AppleScript sends the script application periodic idle commands—by default, every 30 seconds—allowing it to perform background tasks when it is not performing other actions.</blockquote>

<p>So, I will put one of those in and it will run the sync periodically and everything will be happy. That should be straightforward.</p>
]]></content:encoded>
			<wfw:commentRss>http://daisychase.net/blog/2009/10/12/applescript-and-regular-actions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Simplenote Yojimbo Sync v0.2</title>
		<link>http://daisychase.net/blog/2009/10/11/simplenote-yojimbo-sync-v0-2/</link>
		<comments>http://daisychase.net/blog/2009/10/11/simplenote-yojimbo-sync-v0-2/#comments</comments>
		<pubDate>Sun, 11 Oct 2009 12:58:49 +0000</pubDate>
		<dc:creator>archon</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[simplenote]]></category>
		<category><![CDATA[snys]]></category>
		<category><![CDATA[sync]]></category>
		<category><![CDATA[yojimbo]]></category>

		<guid isPermaLink="false">http://daisychase.net/blog/?p=49</guid>
		<description><![CDATA[I&#8217;ve produced a new version of SNYS, 0.2, with the following changes: Version checking at startup, with the option to download now or later, or skip a version. Logging information to ~/Library/Logs/Simplenote Yojimbo Sync.log, which is the primary purpose of this version, to get some more debugging information for the people for whom it doesn&#8217;t [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve produced a new version of SNYS, 0.2, with the following changes:
<ul>
    <li>Version checking at startup, with the option to download now or later, or skip a version.</li>
    <li>Logging information to ~/Library/Logs/Simplenote Yojimbo Sync.log, which is the primary purpose of this version, to get some more debugging information for the people for whom it doesn&#8217;t seem to work. If you are one of these people, please leave a comment or get in touch with me on the Yojimbo or Simplenote API lists.</li>
    <li>A couple of little coding improvements which probably aren&#8217;t very interesting to most people, but which you can see if you&#8217;d like to open the bundle and peer at the scripts.</li>
</ul>
There is also now <a href="http://daisychase.net/blog/simplenote-yojimbo-sync/">a dedicated project page for this</a>, which will always contain a link to the latest version, so you should go there to download it.</p>

<p><strong>Planned future improvements</strong>
<ul>
    <li>It&#8217;s been suggested that the app have an option to sync with the <a href="http://simpletext.ws/">simpletext.ws</a> website used by Writeroom as well as or instead of Simplenote. I think this is a good idea, as there is an API and also I do own a copy of Writeroom for the iPhone, and it shouldn&#8217;t be very hard to just change the method of finding notes, but I&#8217;ll make sure the basic sync structure works for everyone first.</li>
    <li>I find it a bit counter-intuitive that deleting a note on one platform doesn&#8217;t delete it on the other one and in fact re-syncs it next time unless you delete it on <em>both</em>. However, again, until I&#8217;m sure the basic sync structure works for everyone, I&#8217;m going to keep it like that, because it minimises the chance of data loss. Once that&#8217;s sorted out, I plan to fix it so that deleting a note deletes it on both.</li>
    <li>There needs to be an automatic sync option. At the moment you could use something like Lingon to run it, but that isn&#8217;t a very user-friendly method. Unfortunately, adding this feature is complicated by the fact that I have no idea how to do it. I&#8217;m sure it can&#8217;t be that hard.</li>
</ul></p>
]]></content:encoded>
			<wfw:commentRss>http://daisychase.net/blog/2009/10/11/simplenote-yojimbo-sync-v0-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Simplenote Yojimbo Sync v0.11</title>
		<link>http://daisychase.net/blog/2009/10/01/simplenote-yojimbo-sync-v0-11/</link>
		<comments>http://daisychase.net/blog/2009/10/01/simplenote-yojimbo-sync-v0-11/#comments</comments>
		<pubDate>Thu, 01 Oct 2009 12:46:03 +0000</pubDate>
		<dc:creator>archon</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Applescript]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[simplenote]]></category>
		<category><![CDATA[snys]]></category>
		<category><![CDATA[sync]]></category>
		<category><![CDATA[yojimbo]]></category>

		<guid isPermaLink="false">http://daisychase.net/blog/?p=13</guid>
		<description><![CDATA[This is the first public version of my syncing script between Simplenote and Yojimbo.]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-full wp-image-28" style="float:right; margin-left:1em;" title="SimplenoteYojimboSync 2" src="http://daisychase.net/blog/wp-content/uploads/2009/10/SimplenoteYojimboSync-2.jpg" alt="SimplenoteYojimboSync 2" width="256" height="256" />This is the first version of my syncing script between <a href="http://www.simplenoteapp.com/">Simplenote</a> and <a href="http://www.barebones.com/products/Yojimbo/">Yojimbo</a>. (Well, v0.1 was the first, and was pretty much the same just without Growl support, but this is the first <em>public</em> version.)</p>

<p>If you would care to try it out, I would be delighted &#8211; please leave any comments, bug reports etc on this post. (Even just &#8220;works as expected&#8221; would be appreciated.)</p>

<p><strong>Documentation and download</strong>
<ul>
    <li>(<a href="http://daisychase.net/blog/simplenote-yojimbo-sync/">see main project page</a>)</li>
</ul>
<em>Edit</em>: Of course, Sod&#8217;s Law, there was an installation bug in the initial version. I&#8217;ve now fixed this.</p>
]]></content:encoded>
			<wfw:commentRss>http://daisychase.net/blog/2009/10/01/simplenote-yojimbo-sync-v0-11/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
