{"id":8130,"date":"2013-10-29T15:27:05","date_gmt":"2013-10-29T20:27:05","guid":{"rendered":"http:\/\/mjtsai.com\/blog\/?p=8130"},"modified":"2013-10-29T15:28:56","modified_gmt":"2013-10-29T20:28:56","slug":"mavericks-and-applescripts-exists-process","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2013\/10\/29\/mavericks-and-applescripts-exists-process\/","title":{"rendered":"Mavericks and AppleScript&rsquo;s &ldquo;exists process&rdquo;"},"content":{"rendered":"<p><a href=\"https:\/\/twitter.com\/dnanian\/status\/391688665472434176\">Dave Nanian<\/a> notes that running an AppleScript that asks System Events merely whether a process is running brings up the new <a href=\"http:\/\/www.macosautomation.com\/mavericks\/guiscripting\/index.html\">accessibility permissions dialog<\/a>. This has caused some <a href=\"http:\/\/www.shirt-pocket.com\/blog\/index.php\/shadedgrey\/comments\/mavericks\/\">problems<\/a> for SuperDuper. Unfortunately:<\/p>\n<ul>\n<li>This is the documented and most straightforward way to check whether an application is running. It&rsquo;s not actually dangerous.<\/li>\n<li>If you do grant permission, the script then gains full access to automate the UI, which you probably don&rsquo;t want.<\/li>\n<\/ul>","protected":false},"excerpt":{"rendered":"<p>Dave Nanian notes that running an AppleScript that asks System Events merely whether a process is running brings up the new accessibility permissions dialog. This has caused some problems for SuperDuper. Unfortunately: This is the documented and most straightforward way to check whether an application is running. It&rsquo;s not actually dangerous. If you do grant [&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":[2],"tags":[159,30,475,369,660],"class_list":["post-8130","post","type-post","status-publish","format-standard","hentry","category-technology","tag-applescript","tag-mac","tag-mavericks","tag-superduper","tag-system-events"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/8130","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=8130"}],"version-history":[{"count":3,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/8130\/revisions"}],"predecessor-version":[{"id":8133,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/8130\/revisions\/8133"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=8130"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=8130"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=8130"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}