{"id":34621,"date":"2022-01-05T16:06:02","date_gmt":"2022-01-05T21:06:02","guid":{"rendered":"https:\/\/mjtsai.com\/blog\/?p=34621"},"modified":"2022-01-05T16:06:02","modified_gmt":"2022-01-05T21:06:02","slug":"obb-clojurescript-osa","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2022\/01\/05\/obb-clojurescript-osa\/","title":{"rendered":"obb: ClojureScript OSA"},"content":{"rendered":"<p><a href=\"https:\/\/github.com\/babashka\/obb\/\">obb<\/a> (via <a href=\"https:\/\/twitter.com\/zaneshelby\/status\/1477988369154121734\">Zane Shelby<\/a>, <a href=\"https:\/\/news.ycombinator.com\/item?id=29779353\">Hacker News<\/a>):<\/p>\n<blockquote cite=\"https:\/\/github.com\/babashka\/obb\/\"><p>Ad-hoc <a href=\"https:\/\/clojurescript.org\/\">ClojureScript<\/a> scripting of Mac applications via Apple&rsquo;s <a href=\"https:\/\/developer.apple.com\/library\/archive\/documentation\/LanguagesUtilities\/Conceptual\/MacAutomationScriptingGuide\/\">Open Scripting Architecture<\/a>.<\/p><p>[&#8230;]<\/p><p>ClojureScript code is evaluated through <a href=\"https:\/\/github.com\/borkdude\/sci\">SCI<\/a>, the same interpreter that powers <a href=\"https:\/\/babashka.org\/\">babashka<\/a>. SCI is compiled to JavaScript which is then by executed by <code>osascript<\/code>.<\/p><\/blockquote>","protected":false},"excerpt":{"rendered":"<p>obb (via Zane Shelby, Hacker News): Ad-hoc ClojureScript scripting of Mac applications via Apple&rsquo;s Open Scripting Architecture.[&#8230;]ClojureScript code is evaluated through SCI, the same interpreter that powers babashka. SCI is compiled to JavaScript which is then by executed by osascript.<\/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":"2022-01-05T21:06:05Z","apple_news_api_id":"4d19b55d-6342-4657-a61b-a0940c457c02","apple_news_api_modified_at":"2022-01-05T21:06:06Z","apple_news_api_revision":"AAAAAAAAAAD\/\/\/\/\/\/\/\/\/\/w==","apple_news_api_share_url":"https:\/\/apple.news\/ATRm1XWNCRlemG6CUDEV8Ag","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":[159,1098,1072,30,2077,74,71],"class_list":["post-34621","post","type-post","status-publish","format-standard","hentry","category-programming-category","tag-applescript","tag-clojure","tag-javascript-for-automation","tag-mac","tag-macos-12","tag-opensource","tag-programming"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/34621","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=34621"}],"version-history":[{"count":1,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/34621\/revisions"}],"predecessor-version":[{"id":34622,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/34621\/revisions\/34622"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=34621"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=34621"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=34621"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}