{"id":1893,"date":"2009-03-26T20:32:00","date_gmt":"2009-03-27T00:32:00","guid":{"rendered":"http:\/\/mjtsai.com\/blog\/?p=1893"},"modified":"2009-03-26T20:32:50","modified_gmt":"2009-03-27T00:32:50","slug":"introducing-jstalk","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2009\/03\/26\/introducing-jstalk\/","title":{"rendered":"Introducing JSTalk"},"content":{"rendered":"<p><a href=\"http:\/\/gusmueller.com\/blog\/archives\/2009\/03\/introducing_jstalk__an_alternative_to_applescript.html\">Gus Mueller<\/a>:<\/p>\n<blockquote cite=\"http:\/\/gusmueller.com\/blog\/archives\/2009\/03\/introducing_jstalk__an_alternative_to_applescript.html\"><p>You write your scripts in JavaScript, and application communication is handled via Cocoa&rsquo;s distributed objects. Like PyObjc and RubyCocoa, JSTalk uses a bridge to talk to Cocoa (JSCocoa + WebKit&rsquo;s JavaScriptCore), so you get all the power and speed that comes with it. JSTalk comes with a little editor, a command line tool, and an automator action. If an application you want to script isn&rsquo;t exposed via JSTalk, you can still tell it what to do via the Cocoa Script Bridge (which is new to 10.5).<\/p><\/blockquote>\n<p>First of all, this is very cool. However, I think defining the object model, e.g. using XML, is a feature. Otherwise there&rsquo;s no separation between the scripting interface and the application&rsquo;s unstable internal interfaces. Secondly, most of my scripts need to run on other Macs, which don&rsquo;t have anything special installed. Hopefully, Apple will take a look at JSTalk along with <a href=\"http:\/\/appscript.sourceforge.net\">Appscript<\/a> and <a href=\"http:\/\/www.latenightsw.com\/freeware\/JavaScriptOSA\/\">JavaScript OSA<\/a>, come up with something modern and cool, and build it into the OS.\n<\/p>","protected":false},"excerpt":{"rendered":"<p>Gus Mueller: You write your scripts in JavaScript, and application communication is handled via Cocoa&rsquo;s distributed objects. Like PyObjc and RubyCocoa, JSTalk uses a bridge to talk to Cocoa (JSCocoa + WebKit&rsquo;s JavaScriptCore), so you get all the power and speed that comes with it. JSTalk comes with a little editor, a command line tool, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"apple_news_api_created_at":"","apple_news_api_id":"","apple_news_api_modified_at":"","apple_news_api_revision":"","apple_news_api_share_url":"","apple_news_coverimage":0,"apple_news_coverimage_caption":"","apple_news_is_hidden":false,"apple_news_is_paid":false,"apple_news_is_preview":false,"apple_news_is_sponsored":false,"apple_news_maturity_rating":"","apple_news_metadata":"\"\"","apple_news_pullquote":"","apple_news_pullquote_position":"","apple_news_slug":"","apple_news_sections":"\"\"","apple_news_suppress_video_url":false,"apple_news_use_image_component":false,"footnotes":""},"categories":[4],"tags":[],"class_list":["post-1893","post","type-post","status-publish","format-standard","hentry","category-programming-category"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/1893","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/comments?post=1893"}],"version-history":[{"count":0,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/1893\/revisions"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=1893"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=1893"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=1893"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}