{"id":499271,"date":"2010-04-01T08:35:46","date_gmt":"2010-04-01T12:35:46","guid":{"rendered":"http:\/\/theappleblog.com\/?p=43147"},"modified":"2010-04-01T08:35:46","modified_gmt":"2010-04-01T12:35:46","slug":"how-to-quit-all-open-applications-in-os-x","status":"publish","type":"post","link":"https:\/\/mereja.media\/index\/499271","title":{"rendered":"How-To: Quit All Open Applications in OS X"},"content":{"rendered":"<p><a href=\"http:\/\/gigapple.files.wordpress.com\/2010\/04\/applet.png\"><img loading=\"lazy\" decoding=\"async\"  title=\"applet\" src=\"http:\/\/gigapple.files.wordpress.com\/2010\/04\/applet.png?w=128&#038;h=128\" alt=\"\" width=\"128\" height=\"128\" class=\"alignright size-full wp-image-43337\" \/><\/a>Sometimes, for whatever reason, you need to quit all your open applications.\u00a0But going through each application and quitting them is a pain. Good thing Apple included a nifty little scripting language in OS X called AppleScript that will allow us to quit applications in one fell swoop.<\/p>\n<h2>The Easy Way<\/h2>\n<ol>\n<li>Just <a href=\"http:\/\/a.theappleblog.com\/files\/Quit.zip\">download<\/a> the precompiled Quit application we put together.<\/li>\n<li>You\u2019re done, unless you want to assign it to a keyboard shortcut, in which case, read the <strong>Assigning a Keyboard Shortcut<\/strong> section below.<\/li>\n<\/ol>\n<h2>The Hard Way<\/h2>\n<ol>\n<li>Fire up the <strong>AppleScript Editor,<\/strong> which is located in <strong>\/Applications\/Utilities<\/strong>.<\/li>\n<li>Copy this code and paste it into the <strong>AppleScript Editor<\/strong> window:\n<pre class=\"brush: plain;\">\ntell application &quot;System Events&quot; to set the visible of every process to true\nset white_list to {&quot;Finder&quot;}\ntry\ntell application &quot;Finder&quot;\n   set process_list to the name of every process whose visible is true\nend tell\nrepeat with i from 1 to (number of items in process_list)\n  set this_process to item i of the process_list\n  if this_process is not in white_list then\n    tell application this_process\n      quit\n    end tell\n  end if\nend repeat\non error\ntell the current application to display dialog &quot;An error has occurred!&quot; &amp;amp; return &amp;amp; &quot;This script will now quit&quot; buttons {&quot;Quit&quot;} default button 1 with icon 0\nend try\n<\/pre>\n<\/li>\n<li>Save it as an application and give it a name (may I suggest \u201cQuit\u201d?).<\/li>\n<li>That\u2019s it. You can move it to your desktop so you can run it before you\u00a0shut down, but that\u2019s inefficient, isn\u2019t it? Read on to find out how to assign it to a keyboard shortcut.<\/li>\n<\/ol>\n<h2>Assigning a Keyboard Shortcut<\/h2>\n<ol>\n<li>Open up <strong>Automator<\/strong> (\/Applications\/Utilities) and choose to create a new service.<\/li>\n<li>Set <strong>Service receives <\/strong>to <strong>no input<\/strong> and leave everything else alone.<\/li>\n<li>Search for <strong>launch application<\/strong> in the search field on the left pane and drag the resulting action over to the right pane. Your Automator window should look like this:<br \/>\n<img loading=\"lazy\" decoding=\"async\"  title=\"automator1\" src=\"http:\/\/gigapple.files.wordpress.com\/2010\/03\/screen-shot-2010-03-29-at-6-11-08-pm.png?w=583&#038;h=430\" alt=\"\" width=\"583\" height=\"430\" class=\"aligncenter size-full wp-image-43148\" \/><\/li>\n<li>Save it and give it a name. I used <strong>Foo<\/strong>.<\/li>\n<li>Open up <strong>System Preferences<\/strong> and click on <strong>Keyboard <\/strong> (or <strong>Keyboard &amp; Mouse, <\/strong>depending on your version of OS X).<\/li>\n<li>Go to the <strong>Keyboard Shortcuts<\/strong> tab and click on <strong>Application Shortcuts<\/strong> in the left pane.<\/li>\n<li>Click the <strong>+<\/strong> symbol to add a new shortcut and make sure the <strong>Application<\/strong> popup list is on <strong>All Applications.<\/strong><\/li>\n<li>Put whatever name you gave the service you created earlier in the <strong>Menu Title<\/strong> field. It has to be the <em>exact <\/em>name, meaning capitalization matters.<\/li>\n<li>Click on the <strong>Keyboard Shortcut <\/strong>field and enter whatever shortcut you want. Shift-Command-Q is already taken by the system, so I used Option-Command-Q. Your window should look like this:<br \/>\n<img loading=\"lazy\" decoding=\"async\"  title=\"sysprefs-quitapp\" src=\"http:\/\/gigapple.files.wordpress.com\/2010\/03\/screen-shot-2010-03-30-at-3-06-47-pm.png?w=589&#038;h=521\" alt=\"\" width=\"589\" height=\"521\" class=\"aligncenter size-full wp-image-43225\" \/><\/li>\n<li>Click <strong>Add<\/strong>, and you\u2019re done.<\/li>\n<\/ol>\n<h2>Conclusion<\/h2>\n<p>Now you\u2019re ready to take over the world. Well, maybe not, but you <em>are<\/em> ready to shut down.<\/p>\n<p><img decoding=\"async\" alt=\"\" border=\"0\" src=\"http:\/\/stats.wordpress.com\/b.gif?host=theappleblog.com&#038;blog=5550580&#038;post=43147&#038;subd=gigapple&#038;ref=&#038;feed=1\" \/><\/p>\n<div class=\"feedflare\">\n<a href=\"http:\/\/feeds.feedburner.com\/~ff\/TheAppleBlog?a=3kZaeIaQ1NI:skSQQHZlxuY:yIl2AUoC8zA\"><img decoding=\"async\" src=\"http:\/\/feeds.feedburner.com\/~ff\/TheAppleBlog?d=yIl2AUoC8zA\" border=\"0\"><\/img><\/a> <a href=\"http:\/\/feeds.feedburner.com\/~ff\/TheAppleBlog?a=3kZaeIaQ1NI:skSQQHZlxuY:D7DqB2pKExk\"><img decoding=\"async\" src=\"http:\/\/feeds.feedburner.com\/~ff\/TheAppleBlog?i=3kZaeIaQ1NI:skSQQHZlxuY:D7DqB2pKExk\" border=\"0\"><\/img><\/a> <a href=\"http:\/\/feeds.feedburner.com\/~ff\/TheAppleBlog?a=3kZaeIaQ1NI:skSQQHZlxuY:V_sGLiPBpWU\"><img decoding=\"async\" src=\"http:\/\/feeds.feedburner.com\/~ff\/TheAppleBlog?i=3kZaeIaQ1NI:skSQQHZlxuY:V_sGLiPBpWU\" border=\"0\"><\/img><\/a> <a href=\"http:\/\/feeds.feedburner.com\/~ff\/TheAppleBlog?a=3kZaeIaQ1NI:skSQQHZlxuY:F7zBnMyn0Lo\"><img decoding=\"async\" src=\"http:\/\/feeds.feedburner.com\/~ff\/TheAppleBlog?i=3kZaeIaQ1NI:skSQQHZlxuY:F7zBnMyn0Lo\" border=\"0\"><\/img><\/a> <a href=\"http:\/\/feeds.feedburner.com\/~ff\/TheAppleBlog?a=3kZaeIaQ1NI:skSQQHZlxuY:guobEISWfyQ\"><img decoding=\"async\" src=\"http:\/\/feeds.feedburner.com\/~ff\/TheAppleBlog?i=3kZaeIaQ1NI:skSQQHZlxuY:guobEISWfyQ\" border=\"0\"><\/img><\/a>\n<\/div>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/feeds.feedburner.com\/~r\/TheAppleBlog\/~4\/3kZaeIaQ1NI\" height=\"1\" width=\"1\"\/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sometimes, for whatever reason, you need to quit all your open applications.\u00a0But going through each application and quitting them is a pain. Good thing Apple included a nifty little scripting language in OS X called AppleScript that will allow us to quit applications in one fell swoop. The Easy Way Just download the precompiled Quit [&hellip;]<\/p>\n","protected":false},"author":6548,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-499271","post","type-post","status-publish","format-standard","hentry","category-news"],"_links":{"self":[{"href":"https:\/\/mereja.media\/index\/wp-json\/wp\/v2\/posts\/499271","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mereja.media\/index\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mereja.media\/index\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mereja.media\/index\/wp-json\/wp\/v2\/users\/6548"}],"replies":[{"embeddable":true,"href":"https:\/\/mereja.media\/index\/wp-json\/wp\/v2\/comments?post=499271"}],"version-history":[{"count":0,"href":"https:\/\/mereja.media\/index\/wp-json\/wp\/v2\/posts\/499271\/revisions"}],"wp:attachment":[{"href":"https:\/\/mereja.media\/index\/wp-json\/wp\/v2\/media?parent=499271"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mereja.media\/index\/wp-json\/wp\/v2\/categories?post=499271"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mereja.media\/index\/wp-json\/wp\/v2\/tags?post=499271"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}