<?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>kenclark.me &#187; automator</title>
	<atom:link href="http://kenclark.me/tag/automator/feed/" rel="self" type="application/rss+xml" />
	<link>http://kenclark.me</link>
	<description>A weblog by Ken Clark about technology, e-books, and all things Apple.</description>
	<lastBuildDate>Thu, 29 Jul 2010 11:40:12 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='kenclark.me' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
		<item>
		<title>Services: The #1 Reason to Upgrade to Snow Leopard</title>
		<link>http://kenclark.me/2009/09/services-the-1-reason-to-upgrade-to-snow-leopard/</link>
		<comments>http://kenclark.me/2009/09/services-the-1-reason-to-upgrade-to-snow-leopard/#comments</comments>
		<pubDate>Tue, 08 Sep 2009 23:57:44 +0000</pubDate>
		<dc:creator>Ken Clark</dc:creator>
				<category><![CDATA[All About Apple]]></category>
		<category><![CDATA[Working Smart]]></category>
		<category><![CDATA[automation]]></category>
		<category><![CDATA[automator]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[services]]></category>

		<guid isPermaLink="false">http://www.kenclarksblog.com/?p=441</guid>
		<description><![CDATA[I just finished watching a series of MacBreak video podcasts on the new Services architecture in Snow Leopard, and I was really impressed.   With Snow Leopard, Apple has completely overhauled this architecture and introduced a killer framework that will really benefit both the casual and advanced user.]]></description>
			<content:encoded><![CDATA[<p></p><div id="attachment_444" class="wp-caption aligncenter" style="width: 518px">
	<a href="http://www.macosxautomation.com/services/index.html" target="_blank"><img class="size-full wp-image-444" src="http://www.kenclarksblog.com/wp-content/uploads/2009/09/services-splash-900x5621.jpg" alt="How to Access Services in Snow Leopard" width="518" height="324" /></a>
	<p class="wp-caption-text">Access OS X Services via: 1) Services Menu; 2) Action Menu; 3) Contextual Menu; 4) Text Editing Contextual Menu (via http://www.macosxautomation.com)</p>
</div>
<p>I just finished watching a series of <a title="MacBreak" href="http://www.pixelcorps.tv/macbreak" target="_blank">MacBreak</a> video podcasts on the new Services architecture in Snow Leopard, and I was really impressed.   With Snow Leopard, Apple has completely overhauled this architecture and introduced a killer framework that will really benefit both the casual and advanced user.</p>
<p>The videos are hosted by Alex Lindsay and feature Sal Sogholan, Apple&#8217;s Applescript Product Manager and automation guru.  Rather than me trying to explain how it all works, you should definitely just check out the videos:</p>
<ul>
<li><a title="MacBreak 235: Automation in Snow Leopard Part 1" href="http://pixelcorps.cachefly.net/mbkv_235_540p_h264.mov" target="_blank">MacBreak 235: Automation in Snow Leopard Part 1</a></li>
<li><a title="MacBreak 236: Automation in Snow Leopard Part 2" href="http://pixelcorps.cachefly.net/mbkv_236_540p_h264.mov" target="_blank">MacBreak 236: Automation in Snow Leopard Part 2</a></li>
<li><a title="MacBreak 237: Automation in Snow Leopard Part 3" href="http://pixelcorps.cachefly.net/mbkv_237_540p_h264.mov" target="_blank">MacBreak 237: Automation in Snow Leopard Part 3</a></li>
<li><a title="MacBreak 238: Automation in Snow Leopard Part 4" href="http://pixelcorps.cachefly.net/mbkv_238_540p_h264.mov" target="_blank">MacBreak 238: Automation in Snow Leopard Part 4</a></li>
</ul>
<p>Apple has also launched a new automation website, <a title="Mac OS X Automation" href="http://www.macosxautomation.com" target="_blank">Mac OS X Automation</a>, which has loads of good info and examples not only on Services, but Applescript and Automator as well.  The Services functionality alone is worth the price of Snow Leopard.  I can&#8217;t wait to start using it.</p>
]]></content:encoded>
			<wfw:commentRss>http://kenclark.me/2009/09/services-the-1-reason-to-upgrade-to-snow-leopard/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="http://pixelcorps.cachefly.net/mbkv_236_540p_h264.mov" length="46948418" type="video/quicktime" />
<enclosure url="http://pixelcorps.cachefly.net/mbkv_235_540p_h264.mov" length="86315597" type="video/quicktime" />
<enclosure url="http://pixelcorps.cachefly.net/mbkv_237_540p_h264.mov" length="95253469" type="video/quicktime" />
<enclosure url="http://pixelcorps.cachefly.net/mbkv_238_540p_h264.mov" length="51390201" type="video/quicktime" />
		</item>
		<item>
		<title>A Quick and Easy Way to Back Up Posterous with Automator</title>
		<link>http://kenclark.me/2009/06/a-quick-and-easy-way-to-back-up-posterous-with-automator/</link>
		<comments>http://kenclark.me/2009/06/a-quick-and-easy-way-to-back-up-posterous-with-automator/#comments</comments>
		<pubDate>Tue, 30 Jun 2009 00:30:07 +0000</pubDate>
		<dc:creator>Ken Clark</dc:creator>
				<category><![CDATA[All About Apple]]></category>
		<category><![CDATA[In the Cloud]]></category>
		<category><![CDATA[Mac OS X Automation]]></category>
		<category><![CDATA[Working Smart]]></category>
		<category><![CDATA[automator]]></category>
		<category><![CDATA[posterous]]></category>

		<guid isPermaLink="false">http://www.kenclarksblog.com/2009/09/a-quick-and-easy-way-to-back-up-posterous-with-automator/</guid>
		<description><![CDATA[One of the concerns I had with using Posterous for my blog was ensuring I had my own backup of my posts given the company is still in start-up mode and the content is hosted on their servers.  Luckily, they have an API, and if you are a Mac user it is very easy to [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>One of the concerns I had with using Posterous for my blog was ensuring I had my own backup of my posts given the company is still in start-up mode and the content is hosted on their servers.  Luckily, they have an API, and if you are a Mac user it is very easy to use Automator to create a daily backup of your content.  You can set this up in about five to ten minutes and while it could be more sophisticated (see my comments at the end of this post), this probably works for a majority of the use cases.</p>
<div>Here&#8217;s how it works:</p>
<div><strong>1) Get the content from Posterous</strong></div>
<div>Posterous has a simple API for <a href="http://posterous.com/api/reading">reading posts from their service</a>.  The format of the request is <a href="http://posterous.com/api/readposts?username=foobar">http://posterous.com/api/readposts?hostname=foobar</a>.  This request will return an XML document of your 10 most recent posts.  (Note: there is a parameter called num_posts that will let you specify up to the last 50 posts).  This is easy for Automator to grab.</div>
<div>First, you need to create a &#8220;Get Specified URLs&#8221; action with the URL of your site, and then save the results via a &#8220;Download URLs&#8221; action to a folder of your choice.  In my example below, I&#8217;ve created a folder called &#8220;Posterous Backups&#8221;:</div>
<div style="text-align: center"><img src="http://farm4.static.flickr.com/3662/3674240370_253cc74735_o.png" alt="Posterous Backup - part 1.png" /></div>
<div>
<div><strong>2) Rename the file</strong></div>
<div>If you stop here, Automator will save a file called readposts in your specified folder.  That&#8217;s fine, but if you run this on consecutive days, it will overwrite the file with the same name and you will have no historical record.  Here&#8217;s how you create a file that is named after the date it is saved.</div>
<div style="text-align: center"><img src="http://farm4.static.flickr.com/3349/3674240344_6b3d2e7683.jpg" alt="Backup Posterous - part 2.png" /></div>
<div style="text-align: left">The first &#8220;Rename Finder Actions&#8221; action renames readpost to file name of &#8220;YYYYMMDD-readposts&#8221;.  I&#8217;ve chosen this format as that is how I prefer to name files.  However this action is flexible and you can customize this to whatever is best for you.  The second &#8220;Rename Finder Actions&#8221; setting just adds .xml as a file suffix.  Therefore if we ran this today (June 29, 2009), the filename would be &#8220;20090629-readposts.xml&#8221;.</div>
<div style="text-align: left">The last action is really for Growl users only.  It adds a Growl notification at the end so I know when the action has been completed.</div>
<div style="text-align: left">That&#8217;s it.  You just backed up your Posterous blog.  You can run this manually, or I&#8217;d suggest you can save it as an Automator application and <a href="http://www.macosxhints.com/article.php?story=20050504105901868">schedule the action to run daily using iCal</a>.</div>
<div style="text-align: left">What are the shortcomings of this solution?  A couple:</div>
<div style="text-align: left">
<ul>
<li>If you have more than 50 posts, it does not do a &#8220;full backup&#8221; of your posts each day.  Why does this matter?  If you have new comments or make any edits to posts that are greater than the last 50, you would potentially lose the comments and changes.  The good news however is the Posterous API supports pagination so you could probably design a smarter workflow to accommodate this.</li>
<li>This workflow doesn&#8217;t back up any media that is saved directly on Posterous servers.  I believe some media &#8212; pictures in particular &#8212; are hosted on Posterous depending on the method you use to post to the blog.</li>
<li>If you had to &#8220;restore&#8221; from this backup and you had more than 50 posts, you would have to chain multiple files together manually to restore all of the content.</li>
</ul>
<div>With all of that said, this is a good way to get you started backing up Posterous quickly.  I am sure we can make this workflow even &#8220;smarter&#8221; and other folks will be will be coming up with more sophisticated backup solutions for Posterous soon enough, but it&#8217;s a good start.</div>
</div>
</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://kenclark.me/2009/06/a-quick-and-easy-way-to-back-up-posterous-with-automator/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
