{"id":41,"date":"2008-07-09T23:31:12","date_gmt":"2008-07-10T06:31:12","guid":{"rendered":"http:\/\/www.latenightsw.com\/blog\/?p=41"},"modified":"2011-03-23T16:54:08","modified_gmt":"2011-03-23T23:54:08","slug":"finding-osa-scripts-with-spotlight","status":"publish","type":"post","link":"http:\/\/markalldritt.com\/?p=41","title":{"rendered":"Finding OSA scripts with Spotlight"},"content":{"rendered":"<p>With the release of Script Debugger 4.0, I added a Spotlight searching capability for OSA scripts created with Script Debugger. \u00a0Based on a series of customer support emails I realized that this is not a well documented aspect of the product. \u00a0Here is a quick overview of how to use Script Debugger Spotlight support to find OSA scripts on your Macintosh.<\/p>\n\n<p><strong>NOTE<\/strong>: Spotlight indexing of OSA scripts only works for scripts that have beenn saved using Script Debugger. \u00a0Scripts created with Apple&#8217;s Script Editor are <strong>not<\/strong> indexed.<\/p>\n\n<p>Script Debugger provides indexing information for three aspects of your OSA scripts:<\/p>\n\n<ol>\n<li><p>the source text of the script (kMDItemTextContent)<\/p><\/li>\n<li><p>the script&#8217;s description (kMDItemDescription)<\/p><\/li>\n<li><p>the script&#8217;s language name (kMDItemKeywords) which is normally &#8220;AppleScript&#8221;<\/p><\/li>\n<\/ol>\n\n<p>Here some ways to find all the scripts on your Macintosh which target the Apple Mail application. \u00a0First, we&#8217;ll search for documents containing &#8220;Mail&#8221; and with the AppleScript keyword:<\/p>\n\n<p>\u00a0\n<img src=\"http:\/\/www.latenightsw.com\/blog\/wp-content\/uploads\/2008\/07\/splotlightas.jpg\"\/><\/p>\n\n<p>This is good, but we get some documents that are not scripts. \u00a0Instead, we&#8217;ll search for OSA scripts that contain &#8220;Mail&#8221;:<\/p>\n\n<p><img src=\"http:\/\/www.latenightsw.com\/blog\/wp-content\/uploads\/2008\/07\/spotlightosa.jpg\" \/><\/p>\n\n<p>Perfect, all the OSA scripts on my machine that target the Apple Mail application.<\/p>\n\n<p>\u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Here is a quick overview of how to use Script Debugger Spotlight support to find OSA scripts on your Macintosh.<\/p><div class=\"more-link-wrapper\"><a class=\"more-link\" href=\"http:\/\/markalldritt.com\/?p=41\">Continue Reading<span class=\"screen-reader-text\">Finding OSA scripts with Spotlight<\/span><\/a><\/div>","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":[6,15,20,16],"tags":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p7AQk-F","_links":{"self":[{"href":"http:\/\/markalldritt.com\/index.php?rest_route=\/wp\/v2\/posts\/41"}],"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=41"}],"version-history":[{"count":1,"href":"http:\/\/markalldritt.com\/index.php?rest_route=\/wp\/v2\/posts\/41\/revisions"}],"predecessor-version":[{"id":484,"href":"http:\/\/markalldritt.com\/index.php?rest_route=\/wp\/v2\/posts\/41\/revisions\/484"}],"wp:attachment":[{"href":"http:\/\/markalldritt.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=41"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/markalldritt.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=41"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/markalldritt.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=41"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}