{"id":307,"date":"2006-08-14T21:31:15","date_gmt":"2006-08-15T04:31:15","guid":{"rendered":"http:\/\/www.redmonk.com\/cote\/wp\/?p=307"},"modified":"2006-08-14T21:31:15","modified_gmt":"2006-08-15T04:31:15","slug":"applescript-vs-javascript","status":"publish","type":"post","link":"https:\/\/redmonk.com\/cote\/2006\/08\/14\/applescript-vs-javascript\/","title":{"rendered":"AppleScript vs. JavaScript?"},"content":{"rendered":"<p>While we&#8217;re on the topic of <a href=\"http:\/\/www.redmonk.com\/cote\/archives\/2006\/08\/wish_list_of_fo.html\">Apple<\/a>, does anyone have an opinion on <a href=\"http:\/\/www.apple.com\/applescript\/\">AppleScript<\/a> vs. <a href=\"http:\/\/en.wikipedia.org\/wiki\/JavaScript\">JavaScript<\/a>? Never mind the native functionality: assume that JavaScript was <a href=\"http:\/\/thefrontside.net\/blog\/taming_the_rhino_making_mozillas_javascript_command_line_a_little_less_brutish\">&#8220;injected&#8221;<\/a> with all the native functionality of AppleScript. The question revolves around the syntax, mechanics, and over-all language philosophy of the *Script.<\/p>\n<p>I was reading <a href=\"http:\/\/factoryjoe.com\/blog\/2006\/08\/14\/a-combined-view-of-the-world\/\">a recent post from Chris Messina<\/a> on the topic of what <a href=\"http:\/\/www.redmonk.com\/jgovernor\/\">James<\/a> would call <a href=\"http:\/\/www.redmonk.com\/cote\/archives\/2006\/05\/episode_11_more.html\">&#8220;the synchronized web,&#8221;<\/a>, and it occurred to me that I&#8217;d much rather script in OS X in a language that I considered more portable than AppleScript: namely JavaScript. Indeed, I was thinking it&#8217;d be interesting if <a href=\"http:\/\/www.mozilla.org\/rhino\/\">Rhino<\/a> or <a href=\"http:\/\/www.mozilla.org\/js\/spidermonkey\/\">Spidermonkey<\/a> could be embedded in <a href=\"http:\/\/www.opencommunity.co.uk\/vienna2.php\">Vienna<\/a> for scripting and plugins.<\/p>\n<p>But, maybe that&#8217;s just crazy. I don&#8217;t really know AppleScript extremely well. Perhaps it&#8217;s the bee&#8217;s knees. What do ya&#8217;ll think?<\/p>\n<p><!-- technorati tags start --><\/p>\n<p>Technorati Tags: <a href=\"http:\/\/www.technorati.com\/tag\/javascript\" rel=\"tag\">javascript<\/a>, <a href=\"http:\/\/www.technorati.com\/tag\/applescript\" rel=\"tag\">applescript<\/a>, <a href=\"http:\/\/www.technorati.com\/tag\/synchronizedweb\" rel=\"tag\">synchronizedweb<\/a>, <a href=\"http:\/\/www.technorati.com\/tag\/rhino\" rel=\"tag\">rhino<\/a>, <a href=\"http:\/\/www.technorati.com\/tag\/spidermonkey\" rel=\"tag\">spidermonkey<\/a>, <a href=\"http:\/\/www.technorati.com\/tag\/osx\" rel=\"tag\">osx<\/a><\/p>\n<p><!-- technorati tags end --><\/p>\n","protected":false},"excerpt":{"rendered":"<p>While we&#8217;re on the topic of Apple, does anyone have an opinion on AppleScript vs. JavaScript? Never mind the native functionality: assume that JavaScript was &#8220;injected&#8221; with all the native functionality of AppleScript. The question revolves around the syntax, mechanics, and over-all language philosophy of the *Script. I was reading a recent post from Chris [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23],"tags":[],"class_list":["post-307","post","type-post","status-publish","format-standard","hentry","category-programming"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/redmonk.com\/cote\/wp-json\/wp\/v2\/posts\/307","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/redmonk.com\/cote\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/redmonk.com\/cote\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/redmonk.com\/cote\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/redmonk.com\/cote\/wp-json\/wp\/v2\/comments?post=307"}],"version-history":[{"count":0,"href":"https:\/\/redmonk.com\/cote\/wp-json\/wp\/v2\/posts\/307\/revisions"}],"wp:attachment":[{"href":"https:\/\/redmonk.com\/cote\/wp-json\/wp\/v2\/media?parent=307"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/redmonk.com\/cote\/wp-json\/wp\/v2\/categories?post=307"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/redmonk.com\/cote\/wp-json\/wp\/v2\/tags?post=307"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}