<?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>Nerd &#187; mac</title>
	<atom:link href="http://nerd.vasilis.nl/category/mac/feed/" rel="self" type="application/rss+xml" />
	<link>http://nerd.vasilis.nl</link>
	<description>Vasilis van Gemert</description>
	<lastBuildDate>Mon, 09 May 2011 07:51:38 +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>Abort an Automator workflow</title>
		<link>http://nerd.vasilis.nl/abort-an-automator-workflow/</link>
		<comments>http://nerd.vasilis.nl/abort-an-automator-workflow/#comments</comments>
		<pubDate>Tue, 04 Aug 2009 21:05:43 +0000</pubDate>
		<dc:creator>Vasilis</dc:creator>
				<category><![CDATA[app]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[nerd]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[productivity]]></category>

		<guid isPermaLink="false">http://nerd.vasilis.nl/?p=88</guid>
		<description><![CDATA[I wanted to abort an OSX Automator workflow if there&#8217;s no internet connection. That function does not exist. It can be done by inserting the action Run Applescript though: try do shell script "curl www.apple.com" on error do shell script "killall name-of-this-script" end try Fill in the name of your Automator application and if there&#8217;s [...]<p><a href="http://nerd.vasilis.nl/abort-an-automator-workflow/">Abort an Automator workflow</a> is a post from: <a href="http://nerd.vasilis.nl">Nerd</a></p>
]]></description>
			<content:encoded><![CDATA[<p>I wanted to abort an OSX <a href="http://www.apple.com/automator/">Automator</a> workflow if there&#8217;s no internet connection. That function does not exist. It can be done by inserting the action Run Applescript though:</p>
<p><code>try<br />
	do shell script "curl www.apple.com"<br />
on error<br />
	do shell script "killall <em>name-of-this-script</em>"<br />
end try</code></p>
<p>Fill in the name of your Automator application and if there&#8217;s an error the script will terminate itself. This way you can build multiple checks. For instance I have another check that stops the automator workflow if a certain disk is not mounted. And suddenly Automator becomes a handy tool. </p>
<p><a href="http://nerd.vasilis.nl/abort-an-automator-workflow/">Abort an Automator workflow</a> is a post from: <a href="http://nerd.vasilis.nl">Nerd</a></p>
]]></content:encoded>
			<wfw:commentRss>http://nerd.vasilis.nl/abort-an-automator-workflow/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

