<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
	
	>
<channel>
	<title>Comments on: AppleScript vs. JavaScript?</title>
	<atom:link href="http://redmonk.com/cote/2006/08/14/applescript-vs-javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://redmonk.com/cote/2006/08/14/applescript-vs-javascript/</link>
	<description>One foot in the muck, the other in utopia</description>
	<lastBuildDate>Tue, 29 May 2012 14:02:26 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=4.1</generator>
	<item>
		<title>By: Cote&#039;</title>
		<link>http://redmonk.com/cote/2006/08/14/applescript-vs-javascript/#comment-437</link>
		<dc:creator><![CDATA[Cote&#039;]]></dc:creator>
		<pubDate>Fri, 18 Aug 2006 13:40:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.redmonk.com/cote/wp/?p=307#comment-437</guid>
		<description><![CDATA[Thanks for all the details has. You&#039;re spot on in pointing out that it&#039;d be better to have &quot;traditional&quot; OSA in Vienna first before moving to something nice, but non-standard. I was trying out QuickSilver (yet again, for the 5th time: it just might stick this time) and wishing I could search through if not do more with Vienna (like subscribe to feeds? search feeds?)
Really what I need to do is take a look at Vienna&#039;s code and see if I can start hacking around with features and Cocoa. ]]></description>
		<content:encoded><![CDATA[<p>Thanks for all the details has. You&#039;re spot on in pointing out that it&#039;d be better to have &quot;traditional&quot; OSA in Vienna first before moving to something nice, but non-standard. I was trying out QuickSilver (yet again, for the 5th time: it just might stick this time) and wishing I could search through if not do more with Vienna (like subscribe to feeds? search feeds?)<br />
Really what I need to do is take a look at Vienna&#039;s code and see if I can start hacking around with features and Cocoa. </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: has</title>
		<link>http://redmonk.com/cote/2006/08/14/applescript-vs-javascript/#comment-436</link>
		<dc:creator><![CDATA[has]]></dc:creator>
		<pubDate>Fri, 18 Aug 2006 11:30:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.redmonk.com/cote/wp/?p=307#comment-436</guid>
		<description><![CDATA[Re. Vienna:
It&#039;d probably make more sense to implement a regular Apple event interface first; that way any language that can speak Apple events can talk to it (AppleScript, Perl, Python, and soon Ruby). Cocoa Scripting&#039;s not perfect, but serviceable scripting support should be quite doable.

Communicating in the other direction - i.e. from application to scripts - is a bit more problematic though, should it need to provide that as well. In theory you&#039;d just use NSAppleScript or OSAKit to allow users to attach OSA scripts to application menus, objects, etc, but in practice the only currently available OSA language that&#039;s good enough to use here is AppleScript, which kinda takes the fun out of things.

So an embedded interpreter wouldn&#039;t need AE or OSA support to operate. OTOH, it won&#039;t have the same &#039;glue&#039; capabilities either, so it&#039;s really a tradeoff.

...
Re. JavaScriptOSA: It&#039;s a pity its Apple event support is so flawed, as it&#039;s still the only more-or-less complete OSA language component outside of AppleScript. (There are others, but they&#039;re all either unfinished or provide only limited OSA support.) Mind you, if some JS guru wanted to develop an OSS version I&#039;d certainly be interested in helping out. A JS-AE bridge would be useful to Dashboard folks too.

p.s. Rick, MacPython&#039;s built-in &#039;OSA&#039; libraries are due for the chop as they&#039;re obsolete (superseded by appscript) and broken on Intel too. ]]></description>
		<content:encoded><![CDATA[<p>Re. Vienna:<br />
It&#039;d probably make more sense to implement a regular Apple event interface first; that way any language that can speak Apple events can talk to it (AppleScript, Perl, Python, and soon Ruby). Cocoa Scripting&#039;s not perfect, but serviceable scripting support should be quite doable.</p>
<p>Communicating in the other direction &#8211; i.e. from application to scripts &#8211; is a bit more problematic though, should it need to provide that as well. In theory you&#039;d just use NSAppleScript or OSAKit to allow users to attach OSA scripts to application menus, objects, etc, but in practice the only currently available OSA language that&#039;s good enough to use here is AppleScript, which kinda takes the fun out of things.</p>
<p>So an embedded interpreter wouldn&#039;t need AE or OSA support to operate. OTOH, it won&#039;t have the same &#039;glue&#039; capabilities either, so it&#039;s really a tradeoff.</p>
<p>&#8230;<br />
Re. JavaScriptOSA: It&#039;s a pity its Apple event support is so flawed, as it&#039;s still the only more-or-less complete OSA language component outside of AppleScript. (There are others, but they&#039;re all either unfinished or provide only limited OSA support.) Mind you, if some JS guru wanted to develop an OSS version I&#039;d certainly be interested in helping out. A JS-AE bridge would be useful to Dashboard folks too.</p>
<p>p.s. Rick, MacPython&#039;s built-in &#039;OSA&#039; libraries are due for the chop as they&#039;re obsolete (superseded by appscript) and broken on Intel too. </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew Dupont</title>
		<link>http://redmonk.com/cote/2006/08/14/applescript-vs-javascript/#comment-435</link>
		<dc:creator><![CDATA[Andrew Dupont]]></dc:creator>
		<pubDate>Wed, 16 Aug 2006 20:42:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.redmonk.com/cote/wp/?p=307#comment-435</guid>
		<description><![CDATA[My experience with AppleScript has been similar to Rick&#039;s.

I desperately wish that JavaScript OSA were stable/functional enough for everyday scripting.  (It seems like the project has been abandoned, sadly.)  What&#039;d be even better, though, would be for Apple to include a JavaScript module for the Open Scripting Architecture in Leopard.  Ideally it&#039;d also integrate JavaScriptCore, thereby including most of what&#039;s awesome about a browser environment.  (How cool would it be to use XMLHttpRequest or XPath in an OSA script?)  But I&#039;m only daydreaming.

(On another note: If AppleScript is a read-only language, and Perl is a write-only language, then whomever writes a Perl-to-AppleScript interpreter will make millions!) ]]></description>
		<content:encoded><![CDATA[<p>My experience with AppleScript has been similar to Rick&#039;s.</p>
<p>I desperately wish that JavaScript OSA were stable/functional enough for everyday scripting.  (It seems like the project has been abandoned, sadly.)  What&#039;d be even better, though, would be for Apple to include a JavaScript module for the Open Scripting Architecture in Leopard.  Ideally it&#039;d also integrate JavaScriptCore, thereby including most of what&#039;s awesome about a browser environment.  (How cool would it be to use XMLHttpRequest or XPath in an OSA script?)  But I&#039;m only daydreaming.</p>
<p>(On another note: If AppleScript is a read-only language, and Perl is a write-only language, then whomever writes a Perl-to-AppleScript interpreter will make millions!) </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Coty</title>
		<link>http://redmonk.com/cote/2006/08/14/applescript-vs-javascript/#comment-434</link>
		<dc:creator><![CDATA[Coty]]></dc:creator>
		<pubDate>Tue, 15 Aug 2006 14:27:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.redmonk.com/cote/wp/?p=307#comment-434</guid>
		<description><![CDATA[I&#039;ve pretty much given up on AppleScript for OSA scripting. It lets me down every time. For my money, &lt;a href=&quot;http://freespace.virgin.net/hamish.sanderson/appscript.html&quot; rel=&quot;nofollow&quot;&gt;appscript&lt;/a&gt; is the way to go. It gives you access to AppleScript-style application automation using a real language. It also give you access to handy Python libraries for things AppleScript isn&#039;t too good at&#8212;which includes pretty much everything but automating applications. ]]></description>
		<content:encoded><![CDATA[<p>I&#039;ve pretty much given up on AppleScript for OSA scripting. It lets me down every time. For my money, <a href="http://freespace.virgin.net/hamish.sanderson/appscript.html" rel="nofollow">appscript</a> is the way to go. It gives you access to AppleScript-style application automation using a real language. It also give you access to handy Python libraries for things AppleScript isn&#039;t too good at&mdash;which includes pretty much everything but automating applications. </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rick Thomas</title>
		<link>http://redmonk.com/cote/2006/08/14/applescript-vs-javascript/#comment-433</link>
		<dc:creator><![CDATA[Rick Thomas]]></dc:creator>
		<pubDate>Mon, 14 Aug 2006 22:53:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.redmonk.com/cote/wp/?p=307#comment-433</guid>
		<description><![CDATA[AppleScript is based on Apple&#039;s Open Scripting Architecture (OSA) which allows other languages to be used to control Mac apps.


&lt;a href=&quot;http://www.latenightsw.com/freeware/JavaScriptOSA/index.html&quot; rel=&quot;nofollow&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://www.latenightsw.com/freeware/JavaScriptOSA/index.html&quot; rel=&quot;nofollow&quot;&gt;http://www.latenightsw.com/freeware/JavaScriptOSA...&lt;/a&gt;
&lt;a href=&quot;http://en.wikipedia.org/wiki/JavaScript_OSA&quot; rel=&quot;nofollow&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://en.wikipedia.org/wiki/JavaScript_OSA&quot; rel=&quot;nofollow&quot;&gt;http://en.wikipedia.org/wiki/JavaScript_OSA&lt;/a&gt;
&lt;a href=&quot;http://www.python.org/doc/2.3.5/mac/scripting.html&quot; rel=&quot;nofollow&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://www.python.org/doc/2.3.5/mac/scripting.html&quot; rel=&quot;nofollow&quot;&gt;http://www.python.org/doc/2.3.5/mac/scripting.htm...&lt;/a&gt;


AppleScript is known as a read-only language: it&#039;s verbose and  fairly clear to read, but frustrating to pick the right constructs to write it. So it&#039;s worth looking at an alternate. I wish Apple would. (I haven&#039;t used JS with OSA, but its philosophy seems similar to AS. Python OSA works  nicely, though.) ]]></description>
		<content:encoded><![CDATA[<p>AppleScript is based on Apple&#039;s Open Scripting Architecture (OSA) which allows other languages to be used to control Mac apps.</p>
<p><a href="http://www.latenightsw.com/freeware/JavaScriptOSA/index.html" rel="nofollow"></a><a href="http://www.latenightsw.com/freeware/JavaScriptOSA/index.html" rel="nofollow"></a><a href="http://www.latenightsw.com/freeware/JavaScriptOSA" rel="nofollow">http://www.latenightsw.com/freeware/JavaScriptOSA</a>&#8230;<br />
<a href="http://en.wikipedia.org/wiki/JavaScript_OSA" rel="nofollow"></a><a href="http://en.wikipedia.org/wiki/JavaScript_OSA" rel="nofollow">http://en.wikipedia.org/wiki/JavaScript_OSA</a><br />
<a href="http://www.python.org/doc/2.3.5/mac/scripting.html" rel="nofollow"></a><a href="http://www.python.org/doc/2.3.5/mac/scripting.html" rel="nofollow"></a><a href="http://www.python.org/doc/2.3.5/mac/scripting.htm" rel="nofollow">http://www.python.org/doc/2.3.5/mac/scripting.htm</a>&#8230;</p>
<p>AppleScript is known as a read-only language: it&#039;s verbose and  fairly clear to read, but frustrating to pick the right constructs to write it. So it&#039;s worth looking at an alternate. I wish Apple would. (I haven&#039;t used JS with OSA, but its philosophy seems similar to AS. Python OSA works  nicely, though.) </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Danno</title>
		<link>http://redmonk.com/cote/2006/08/14/applescript-vs-javascript/#comment-432</link>
		<dc:creator><![CDATA[Danno]]></dc:creator>
		<pubDate>Mon, 14 Aug 2006 21:52:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.redmonk.com/cote/wp/?p=307#comment-432</guid>
		<description><![CDATA[Hmm... I dunno much about AppleScript, but what I do know about JavaScript is that the syntax of the language is ass for such a powerful set of semantics that it supports. ]]></description>
		<content:encoded><![CDATA[<p>Hmm&#8230; I dunno much about AppleScript, but what I do know about JavaScript is that the syntax of the language is ass for such a powerful set of semantics that it supports. </p>
]]></content:encoded>
	</item>
</channel>
</rss>
