<?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; services</title>
	<atom:link href="http://kenclark.me/tag/services/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>Use Mac OS X Services to Import Files into Evernote</title>
		<link>http://kenclark.me/2009/09/using-mac-os-x-services-to-import-files-into-evernote/</link>
		<comments>http://kenclark.me/2009/09/using-mac-os-x-services-to-import-files-into-evernote/#comments</comments>
		<pubDate>Wed, 23 Sep 2009 10:32:28 +0000</pubDate>
		<dc:creator>Ken Clark</dc:creator>
				<category><![CDATA[All About Apple]]></category>
		<category><![CDATA[Working Smart]]></category>
		<category><![CDATA[evernote]]></category>
		<category><![CDATA[mac os x]]></category>
		<category><![CDATA[services]]></category>

		<guid isPermaLink="false">http://www.kenclarksblog.com/?p=647</guid>
		<description><![CDATA[During my recent foray into rediscovering Evernote, I experimented with Evernote's Applescript dictionary and Snow Leopard's updated Services architecture.  My goal was to write a service that made capturing data into Evernote even easier.

I was pretty excited to see how easy it was to write a service and created one that directly import files from the Finder into Evernote.

Here's how to set it up...]]></description>
			<content:encoded><![CDATA[<p></p><p>During <a title="Evernote or Yojimbo?" href="2009/09/evernote-or-yojimbo-finding-the-right-bucket-for-my-stuff/" target="_self">my recent foray into rediscovering Evernote</a>, I experimented with Evernote&#8217;s Applescript dictionary and <a title="Snow Leopard's New Services Architecture" href="2009/09/services-the-1-reason-to-upgrade-to-snow-leopard/" target="_self">Snow Leopard&#8217;s updated Services architecture</a>.  My goal was to write a service that made capturing data into <a title="Evernote" href="http://www.evernote.com" target="_blank">Evernote</a> even easier.</p>
<p>I was pretty excited to see how easy it was to write a service and created one that directly import files from the Finder into Evernote.</p>
<p>Here&#8217;s how to set it up:</p>
<p><strong>1) Launch Automator and select &#8220;Service&#8221;</strong></p>
<p>The Service template in Automator is new to Snow Leopard and lets you create services from scratch.</p>
<p style="text-align: center"><img class="aligncenter size-full wp-image-666" src="http://www.kenclarksblog.com/wp-content/uploads/2009/09/automator-choose-template.png" alt="Select Automator Template" width="418" height="386" /></p>
<p><strong>2) Change &#8220;Service receives selected&#8221; to &#8220;files and folders&#8221;.  Leave &#8220;any application&#8221; selected and &#8220;replaces selected text&#8221; unchecked.</strong></p>
<p>The new Services template can handle a number of data types, but for us files or folders is what we want.</p>
<p><img class="aligncenter size-full wp-image-668" src="http://www.kenclarksblog.com/wp-content/uploads/2009/09/services-receive-selected.png" alt="Receive Selected Files or Folders with Automator Service" width="487" height="53" /></p>
<p><strong>3) Pick the &#8220;Run Applescript&#8221; action from the Utilities Library and copy and paste the below applescript into the input box.</strong></p>
<p>This script has error handling built in (that&#8217;s the try&#8230; end try statement), so if you pass something that Evernote can&#8217;t handle, you will get an alert box telling you what is wrong.  The most common error you may see is if you try to pass the service an unsupported file type.  For example, if you are not an Evernote Premium user and try to pass it a Word doc you will get an error, or if you try to pass it a folder, you will get an error.</p>
<p>The script supports passing multiple files (and if one of the files creates an error condition it will only fail that import, not the entire batch).</p>
<p><span style="font-family: Consolas, Monaco, 'Courier New', Courier, monospace;line-height: 18px;font-size: 12px"> </span></p>
<pre>on run {input}
     tell application "Evernote"
          repeat with x in input
               try
                    create note from file x
               on error error_message number error_number
                    display alert "Send to Evernote Failed" message "Error:		" &amp; error_message &amp; "
" &amp; "Error Number:	" &amp; error_number as warning
               end try
          end repeat
     end tell
end run</pre>
<p>When you are done in Automator, it will look like this:</p>
<p style="text-align: center"><a href="http://www.kenclarksblog.com/wp-content/uploads/2009/09/import-to-evernote-service.png"><img class="aligncenter size-large wp-image-670" src="http://www.kenclarksblog.com/wp-content/uploads/2009/09/import-to-evernote-service-1024x707.png" alt="Import To Evernote Service" width="502" height="347" /></a></p>
<p style="text-align: left">That&#8217;s it!</p>
<p style="text-align: left"><strong>4) Go to File &gt; Save As and name the service &#8220;File | Import to Evernote&#8221;</strong></p>
<p style="text-align: left">This saves the service so it is available throughout OS X.</p>
<p style="text-align: left"><strong>5) Set a Keyboard Shorcut via Automator &gt; Services &gt; Services Preferences</strong></p>
<p style="text-align: left">This is not required, but if you want to create a keyboard shortcut, just find the &#8220;File | Import to Evernote&#8221; Service and double-click the keyboard shortcut column.  I assigned shift-command-E, but you can do whatever makes sense for you.</p>
<p style="text-align: center"><a href="http://www.kenclarksblog.com/wp-content/uploads/2009/09/assign-keyboard-shortcut.png"><img class="aligncenter size-full wp-image-673" src="http://www.kenclarksblog.com/wp-content/uploads/2009/09/assign-keyboard-shortcut.png" alt="Assign Evernote Service Keyboard Shorcut" width="534" height="344" /></a></p>
<p style="text-align: left"><strong>6) Try it out!</strong></p>
<p style="text-align: left">Now when you are in the Finder, you can click your keyboard shortcut and/or right click and pick the service from the context-menu and import files direct into Evernote.</p>
<p style="text-align: center"><a href="http://www.kenclarksblog.com/wp-content/uploads/2009/09/evernote-service-in-context-menu.png"><img class="aligncenter size-full wp-image-674" src="http://www.kenclarksblog.com/wp-content/uploads/2009/09/evernote-service-in-context-menu.png" alt="Evernote File Service in Context Menu" width="404" height="447" /></a></p>
<p style="text-align: left">Last Tip:  If you have <a title="Growl" href="http://growl.info/" target="_blank">Growl</a> installed and have it configured for Evernote, you will get a Growl notification once the import is successful.  It puts a nice finishing touch to the service.</p>
<p style="text-align: center"><a href="http://www.kenclarksblog.com/wp-content/uploads/2009/09/evernote-growl-notification.png"><img class="aligncenter size-full wp-image-675" src="http://www.kenclarksblog.com/wp-content/uploads/2009/09/evernote-growl-notification.png" alt="Growl Notification of Evernote Import" width="316" height="78" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://kenclark.me/2009/09/using-mac-os-x-services-to-import-files-into-evernote/feed/</wfw:commentRss>
		<slash:comments>24</slash:comments>
		</item>
		<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>
	</channel>
</rss>
