{"id":38052,"date":"2023-01-03T16:44:08","date_gmt":"2023-01-03T21:44:08","guid":{"rendered":"https:\/\/mjtsai.com\/blog\/?p=38052"},"modified":"2023-01-03T16:45:59","modified_gmt":"2023-01-03T21:45:59","slug":"inline-applescript-documentation","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2023\/01\/03\/inline-applescript-documentation\/","title":{"rendered":"Inline AppleScript Documentation"},"content":{"rendered":"<p><a href=\"https:\/\/indiestack.com\/2023\/01\/inline-applescript-documentation\/\">Daniel Jalkut<\/a>:<\/p>\n<blockquote cite=\"https:\/\/indiestack.com\/2023\/01\/inline-applescript-documentation\/\">\n<p>I used a relatively little-known trick for examining the raw source code of a scripting dictionary. Simply click and drag from Script Editor&rsquo;s document proxy icon, into a text editor such as TextEdit, Xcode, or <a href=\"https:\/\/www.barebones.com\/products\/bbedit\/index.html\">BBEdit<\/a>[&#8230;] It&rsquo;s a quick-and-dirty way to learn how specific outcomes are achieved, and how you might incorporate similar features in your own app&rsquo;s scripting definition file.<\/p>\n<\/blockquote>\n<p>Another tip along these lines is that you can open the AppleScript dictionary of the current app from Script Debugger&rsquo;s Dock menu.<\/p>\n\n<blockquote cite=\"https:\/\/indiestack.com\/2023\/01\/inline-applescript-documentation\/\">\n<p>In this case, I discovered a new (to me) &ldquo;documentation&rdquo; element in the file[&#8230;] &ldquo;A documentation element may contain any number of html elements, which contain text that will be displayed at that point in the dictionary.&rdquo;<\/p>\n<\/blockquote>","protected":false},"excerpt":{"rendered":"<p>Daniel Jalkut: I used a relatively little-known trick for examining the raw source code of a scripting dictionary. Simply click and drag from Script Editor&rsquo;s document proxy icon, into a text editor such as TextEdit, Xcode, or BBEdit[&#8230;] It&rsquo;s a quick-and-dirty way to learn how specific outcomes are achieved, and how you might incorporate similar [&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":"2023-01-03T21:44:10Z","apple_news_api_id":"3bd75a30-65e1-46c6-b86a-7fa72e6f0ea2","apple_news_api_modified_at":"2023-01-03T21:46:03Z","apple_news_api_revision":"AAAAAAAAAAAAAAAAAAAAAA==","apple_news_api_share_url":"https:\/\/apple.news\/AO9daMGXhRsa4an-nLm8Oog","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,164,339,30,2223,71,1073],"class_list":["post-38052","post","type-post","status-publish","format-standard","hentry","category-programming-category","tag-applescript","tag-documentation","tag-html","tag-mac","tag-macos-13-ventura","tag-programming","tag-script-debugger"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/38052","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=38052"}],"version-history":[{"count":1,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/38052\/revisions"}],"predecessor-version":[{"id":38053,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/38052\/revisions\/38053"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=38052"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=38052"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=38052"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}