{"id":1992,"date":"2009-09-15T11:37:05","date_gmt":"2009-09-15T15:37:05","guid":{"rendered":"http:\/\/mjtsai.com\/blog\/?p=1992"},"modified":"2009-09-15T11:45:24","modified_gmt":"2009-09-15T15:45:24","slug":"perl-and-python-on-snow-leopard","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2009\/09\/15\/perl-and-python-on-snow-leopard\/","title":{"rendered":"Perl and Python on Snow Leopard"},"content":{"rendered":"<p><a href=\"http:\/\/daringfireball.net\/2009\/09\/snow_leopard_applescript_perl_safari_webkit\">John Gruber<\/a> has some good information about the 64-bit versions of Perl and Python on Mac OS X 10.6. I think he&rsquo;s mistaken about the AppleScript fragment, though. I don&rsquo;t think it does what he expects on Mac OS X 10.5, either. As with most languages, <a href=\"http:\/\/developer.apple.com\/mac\/library\/documentation\/AppleScript\/Conceptual\/AppleScriptLangGuide\/reference\/ASLR_operators.html#\/\/apple_ref\/doc\/uid\/TP40000983-CH5g-124070\">&ldquo;or&rdquo; has low precedence in AppleScript<\/a>, so his line was essentially saying <code>if (_browser is not \"Safari\") or \"WebKit\" then<\/code>. I think the most AppleScripty way to write this would be <code>if _browser is not in {\"Safari\", \"WebKit\"} then<\/code>.<\/p>","protected":false},"excerpt":{"rendered":"<p>John Gruber has some good information about the 64-bit versions of Perl and Python on Mac OS X 10.6. I think he&rsquo;s mistaken about the AppleScript fragment, though. I don&rsquo;t think it does what he expects on Mac OS X 10.5, either. As with most languages, &ldquo;or&rdquo; has low precedence in AppleScript, so his line [&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-1992","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\/1992","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=1992"}],"version-history":[{"count":3,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/1992\/revisions"}],"predecessor-version":[{"id":1995,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/1992\/revisions\/1995"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=1992"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=1992"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=1992"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}