{"id":15259,"date":"2016-07-19T10:52:05","date_gmt":"2016-07-19T14:52:05","guid":{"rendered":"http:\/\/mjtsai.com\/blog\/?p=15259"},"modified":"2016-07-19T10:52:05","modified_gmt":"2016-07-19T14:52:05","slug":"applescriptobjc-in-script-debugger-6","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2016\/07\/19\/applescriptobjc-in-script-debugger-6\/","title":{"rendered":"AppleScriptObjC in Script Debugger 6"},"content":{"rendered":"<p><a href=\"http:\/\/latenightsw.com\/applescriptobjc-in-script-debugger-6\/\">Shane Stanley<\/a>:<\/p>\n<blockquote cite=\"http:\/\/latenightsw.com\/applescriptobjc-in-script-debugger-6\/\">\n<p>The most important new AppleScriptObjC feature, and the most obvious, is how Script Debugger displays results. Instead of <code>&laquo;class ocid&raquo;...<\/code>, you will see much more.<\/p>\n<p>[&#8230;]<\/p>\n<p>First, although case matters in AppleScriptObjC, code completion is case-insensitive. You can type <code>NSS<\/code> or <code>nss<\/code>, and get the same result; the correct case will be inserted. You can also use the <strong>tab<\/strong> key within the completion list; this is very helpful where there are multiple methods with similar names.<\/p>\n<p>[&#8230;]<\/p>\n<p>Script Debugger includes terminology for the following frameworks: Foundation, AppKit, Quartz, AVFoundation, AddressBook, Contacts, CoreImage, CoreLocation, CoreWLAN, EventKit, JavaScriptCore, MapKit, OSAKit, and WebKit. The information is collated from the frameworks themselves and from header files, with some filtering applied to remove many methods that cannot be used from AppleScriptObjC.<\/p>\n<p>[&#8230;]<\/p>\n<p>Finally, there is an important limitation. Script Debugger runs scripts on a background thread, so any code that needs to be run on the main thread needs to use the method <code>performSelectorOnMainThread:withObject:waitUntilDone:<\/code> to do it. If not, you are likely to freeze or crash Script Debugger.<\/p>\n<\/blockquote>\n<p>Previously: <a href=\"http:\/\/mjtsai.com\/blog\/2016\/06\/22\/script-debugger-6\/\">Script Debugger 6<\/a>.<\/p>","protected":false},"excerpt":{"rendered":"<p>Shane Stanley: The most important new AppleScriptObjC feature, and the most obvious, is how Script Debugger displays results. Instead of &laquo;class ocid&raquo;..., you will see much more. [&#8230;] First, although case matters in AppleScriptObjC, code completion is case-insensitive. You can type NSS or nss, and get the same result; the correct case will be inserted. [&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":[159,650,69,30,32,1199,71,1073],"class_list":["post-15259","post","type-post","status-publish","format-standard","hentry","category-programming-category","tag-applescript","tag-applescriptobjc","tag-cocoa","tag-mac","tag-macapp","tag-mac-os-x-10-11","tag-programming","tag-script-debugger"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/15259","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=15259"}],"version-history":[{"count":1,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/15259\/revisions"}],"predecessor-version":[{"id":15260,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/15259\/revisions\/15260"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=15259"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=15259"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=15259"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}