{"id":6,"date":"2007-01-06T19:42:06","date_gmt":"2007-01-07T03:42:06","guid":{"rendered":"http:\/\/www.latenightsw.com\/blog\/?p=10"},"modified":"2007-01-06T19:42:06","modified_gmt":"2007-01-07T03:42:06","slug":"javascript-osa-vs-mac-os-x-104-script-editor","status":"publish","type":"post","link":"http:\/\/markalldritt.com\/?p=6","title":{"rendered":"JavaScript OSA vs Mac OS X 10.4 Script Editor"},"content":{"rendered":"<p>Somewhere along the way, the Mac OS X 10.4 Script Editor stopped being able to open scripts compiled using JavaScript OSA.  You can compile and save scripts, but when you try and open then you\u2019ll see this error alert:<\/p>\n\n<p><a href=\"http:\/\/www.latenightsw.com\/blog\/wp-content\/uploads\/2007\/01\/Picture%201.png\" onclick=\"window.open('http:\/\/www.latenightsw.com\/blog\/wp-content\/uploads\/2007\/01\/Picture%201.png','popup','width=445,height=187,scrollbars=no,resizable=yes,toolbar=no,directories=no,location=no,menubar=no,status=yes,left=0,top=0');return false\"><img loading=\"lazy\" src=\"http:\/\/www.latenightsw.com\/blog\/wp-content\/uploads\/2007\/01\/Picture%201-tm.jpg\" height=\"187\" width=\"443\" border=\"1\" hspace=\"4\" vspace=\"4\" alt=\"Picture 1\" \/><\/a><\/p>\n\n<p>It turns out that the 10.4 Script Editor can only open scripts saved using the \u201cdefault\u201d scripting system.  The \u201cdefault\u201d scripting system is the one that is assigned to new documents &#8211; generally AppleScript.<\/p>\n\n<p>In order to open JavaScript OSA scripts, you have to change the \u201cdefault\u201d scripting system to JavaScript OSA.  The problem then is that you won\u2019t be able to open your AppleScript scripts &#8211; sigh.<\/p>\n\n<p><a href=\"http:\/\/www.latenightsw.com\/blog\/wp-content\/uploads\/2007\/01\/200701061940.jpg\" onclick=\"window.open('http:\/\/www.latenightsw.com\/blog\/wp-content\/uploads\/2007\/01\/200701061940.jpg','popup','width=468,height=170,scrollbars=no,resizable=yes,toolbar=no,directories=no,location=no,menubar=no,status=yes,left=0,top=0');return false\"><img loading=\"lazy\" src=\"http:\/\/www.latenightsw.com\/blog\/wp-content\/uploads\/2007\/01\/200701061940-tm.jpg\" height=\"170\" width=\"468\" border=\"1\" hspace=\"4\" vspace=\"4\" alt=\"200701061940\" \/><\/a><\/p>\n\n<p><b>NOTE<\/b>: this problem also effects Script Debugger\u2019s AppleScript Debugging OSA component.  If, for some reason, you need to open scripts saved from Script Debugger with Debugging enabled in the Script Editor, you\u2019ll have to use the same trick.<\/p>\n\n<p>Apple is aware of the issue and working on a fix.  However, its not clear when a fix will be released.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Somewhere along the way, the Mac OS X 10.4 Script Editor stopped being able to open scripts compiled using JavaScript OSA. You can compile and&#8230;<div class=\"more-link-wrapper\"><a class=\"more-link\" href=\"http:\/\/markalldritt.com\/?p=6\">Continue Reading<span class=\"screen-reader-text\">JavaScript OSA vs Mac OS X 10.4 Script Editor<\/span><\/a><\/div><\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[11],"tags":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p7AQk-6","_links":{"self":[{"href":"http:\/\/markalldritt.com\/index.php?rest_route=\/wp\/v2\/posts\/6"}],"collection":[{"href":"http:\/\/markalldritt.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/markalldritt.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/markalldritt.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/markalldritt.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6"}],"version-history":[{"count":0,"href":"http:\/\/markalldritt.com\/index.php?rest_route=\/wp\/v2\/posts\/6\/revisions"}],"wp:attachment":[{"href":"http:\/\/markalldritt.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/markalldritt.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/markalldritt.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}