<?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; Applescript</title>
	<atom:link href="http://daisychase.net/blog/tag/applescript/feed/" rel="self" type="application/rss+xml" />
	<link>http://daisychase.net/blog</link>
	<description>pens and paper and general ephemera</description>
	<lastBuildDate>Sat, 04 Feb 2012 21:14:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>SNYS v0.41</title>
		<link>http://daisychase.net/blog/2011/07/27/snys-v0-41/</link>
		<comments>http://daisychase.net/blog/2011/07/27/snys-v0-41/#comments</comments>
		<pubDate>Wed, 27 Jul 2011 14:19:37 +0000</pubDate>
		<dc:creator>ordinal</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Applescript]]></category>
		<category><![CDATA[Lion]]></category>
		<category><![CDATA[snys]]></category>

		<guid isPermaLink="false">http://daisychase.net/blog/?p=465</guid>
		<description><![CDATA[I noticed that SNYS was having trouble with Lion, and I think some of the later Snow Leopard security updates, and wasn&#8217;t able to spawn processes properly. I&#8217;ve updated it so that it is able to do so. (Basically this just involved re-saving the script as a new application in Applescript Editor and then copying [...]]]></description>
			<content:encoded><![CDATA[<p>I noticed that SNYS was having trouble with Lion, and I think some of the later Snow Leopard security updates, and wasn&#8217;t able to spawn processes properly. I&#8217;ve updated it so that it is able to do so. (Basically this just involved re-saving the script as a new application in Applescript Editor and then copying the resources back in.) This is v0.41 which is now available for download at <a href="http://daisychase.net/software/snys/SimplenoteYojimboSync.zip">http://daisychase.net/software/snys/SimplenoteYojimboSync.zip</a> as usual.</p>
]]></content:encoded>
			<wfw:commentRss>http://daisychase.net/blog/2011/07/27/snys-v0-41/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>SNYS v0.4, &#8220;Delete all Simplenotes&#8221; script, sundry data duplication issues</title>
		<link>http://daisychase.net/blog/2011/03/17/snys-v0-4-delete-all-simplenotes-script-sundry-data-duplication-issues/</link>
		<comments>http://daisychase.net/blog/2011/03/17/snys-v0-4-delete-all-simplenotes-script-sundry-data-duplication-issues/#comments</comments>
		<pubDate>Thu, 17 Mar 2011 22:41:00 +0000</pubDate>
		<dc:creator>ordinal</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Applescript]]></category>
		<category><![CDATA[simplenote]]></category>
		<category><![CDATA[snys]]></category>

		<guid isPermaLink="false">http://daisychase.net/blog/?p=446</guid>
		<description><![CDATA[A few people have mentioned that SNYS seems to be duplicating notes recently, which I experienced myself. I&#8217;m not entirely sure what caused this &#8211; perhaps a brief Simplenote blip &#8211; but after some testing, I can say that after resetting sync by deleting all my Simplenotes and re-uploading, SNYS is behaving fine for me. [...]]]></description>
			<content:encoded><![CDATA[<p>A few people have mentioned that SNYS seems to be duplicating notes recently, which I experienced myself. I&#8217;m not entirely sure what caused this &#8211; perhaps a brief Simplenote blip &#8211; but after some testing, I can say that after resetting sync by deleting all my Simplenotes and re-uploading, SNYS is behaving fine for me.</p>

<p>I&#8217;ve added <a href="http://daisychase.net/blog/simplenote-yojimbo-sync/resetting-snys-sync/" title="Resetting SNYS sync">a page that explains how to reset sync</a> &#8211; basically, quit SNYS, delete everything in either Yojimbo or Simplenote, and then run SNYS again. Because it is a pain to delete everything in Simplenote manually, and there are often metadata worth preserving in Yojimbo, I&#8217;ve also uploaded <a href="http://daisychase.net/blog/delete-all-simplenotes/" title="Delete all Simplenotes script">the script I use to delete all of my Simplenotes automatically</a>, which I&#8217;ve had to use while testing a few times.</p>

<p>Finally, I&#8217;ve uploaded version 0.4 of SNYS, which is basically the same as the previous one but has some more data checks to try to make sure that, if there is a communication issue, it is less likely to duplicate your notes. If it finds what it thinks is a zero note count in either Yojimbo or Simplenote, it will ask you to confirm before syncing. The auto-update function should alert you of this, or you can get it from <a href="http://daisychase.net/blog/simplenote-yojimbo-sync/" title="SNYS main page">the usual page</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://daisychase.net/blog/2011/03/17/snys-v0-4-delete-all-simplenotes-script-sundry-data-duplication-issues/feed/</wfw:commentRss>
		<slash:comments>13</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>ordinal</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:</p>

<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>

<p>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.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>ordinal</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>35</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>ordinal</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.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>ordinal</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></p>

<ul>
    <li>(<a href="http://daisychase.net/blog/simplenote-yojimbo-sync/">see main project page</a>)</li>
</ul>

<p><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>3</slash:comments>
		</item>
	</channel>
</rss>

