{"id":5278,"date":"2012-07-07T16:32:30","date_gmt":"2012-07-07T21:32:30","guid":{"rendered":"http:\/\/mjtsai.com\/blog\/?p=5278"},"modified":"2012-07-07T16:32:32","modified_gmt":"2012-07-07T21:32:32","slug":"scripting-bridge-problems","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2012\/07\/07\/scripting-bridge-problems\/","title":{"rendered":"Scripting Bridge Problems"},"content":{"rendered":"<p><a href=\"http:\/\/stackoverflow.com\/questions\/1309958\/avoiding-applescript-through-ruby-rb-appscript-or-rubyosa\">Hamish Sanderson<\/a> (via <a href=\"http:\/\/www.libertypages.com\/clarktech\/?p=3803\">Clark Goble<\/a>):<\/p>\n<blockquote cite=\"http:\/\/stackoverflow.com\/questions\/1309958\/avoiding-applescript-through-ruby-rb-appscript-or-rubyosa\"><p>SB, on the other hand, does its hardest to pretend that it is a genuine Cocoa API with Cocoa-style behaviour, so layers on a large amount of magic. The result is something superficially appealing to Cocoa developers, but as soon as those abstractions start to leak - as abstractions invariably do - you are completely at sea in terms of understanding what&rsquo;s going on. For example, SBElementArray claims to be an array - it even subclasses NSMutableArray - but when you actually try to use its array methods, half of them work and half of them don&rsquo;t. In fact, it isn&rsquo;t a real array at all; it&rsquo;s a wrapper around an unevaluated Apple event object specifier, faked up to pretend it&rsquo;s an NSMutableArray. <\/p><\/blockquote>","protected":false},"excerpt":{"rendered":"<p>Hamish Sanderson (via Clark Goble): SB, on the other hand, does its hardest to pretend that it is a genuine Cocoa API with Cocoa-style behaviour, so layers on a large amount of magic. The result is something superficially appealing to Cocoa developers, but as soon as those abstractions start to leak - as abstractions invariably [&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-5278","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\/5278","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=5278"}],"version-history":[{"count":2,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/5278\/revisions"}],"predecessor-version":[{"id":5280,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/5278\/revisions\/5280"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=5278"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=5278"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=5278"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}