<?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>theconsultant.net &#187; Applescript</title>
	<atom:link href="http://www.theconsultant.net/category/applescript/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.theconsultant.net</link>
	<description>Simplicity is complicated.</description>
	<lastBuildDate>Thu, 17 Sep 2009 17:00:27 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>AppleScript 2.0!</title>
		<link>http://www.theconsultant.net/2007/10/applescript-20/</link>
		<comments>http://www.theconsultant.net/2007/10/applescript-20/#comments</comments>
		<pubDate>Wed, 31 Oct 2007 02:20:45 +0000</pubDate>
		<dc:creator>dAVE</dc:creator>
				<category><![CDATA[Applescript]]></category>
		<category><![CDATA[Mac OS X]]></category>

		<guid isPermaLink="false">http://www.theconsultant.net/archives/2007/10/30/applescript-20/</guid>
		<description><![CDATA[Thanks to df for pointing out that Apple has posted release notes for AppleScript in Leopard.We can now ask if an application is running, without AppleScript launching it to find out. ;-)Some nice additions to running AppleScript on the Command Line:

use # to comment out a line
start the script with #!/usr/bin/osascript, and make it executable, [...]]]></description>
			<content:encoded><![CDATA[<p>Thanks to <a href="http://daringfireball.net/linked/2007/october#tue-30-applescript">df</a> for pointing out that Apple has posted <a href="http://developer.apple.com/releasenotes/AppleScript/RN-AppleScript/index.html">release notes for AppleScript</a> in Leopard.We can now ask if an application is running, without AppleScript launching it to find out. ;-)Some nice additions to running AppleScript on the Command Line:
<ul>
<li>use <code>#</code> to comment out a line</li>
<li>start the script with <code>#!/usr/bin/osascript</code>, and make it executable, will enable it to be run in the shell</li>
<li><code>osadecompile</code> is a command line script to display compiled scripts as text</li>
</ul>
<p>Now <code>osascript</code> also supports additional arguments on the command line, so now you can run a script and provide strings for it to use. see the osascript man page for details, and an example. This feature was available in Tiger, I just never noticed until now!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.theconsultant.net/2007/10/applescript-20/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
