{"id":100,"date":"2008-11-05T14:47:42","date_gmt":"2008-11-05T21:47:42","guid":{"rendered":"https:\/\/www.wkiri.com\/today\/?p=100"},"modified":"2008-11-05T14:48:30","modified_gmt":"2008-11-05T21:48:30","slug":"how-to-restart-the-dock","status":"publish","type":"post","link":"https:\/\/www.wkiri.com\/today\/?p=100","title":{"rendered":"How to Restart the Dock"},"content":{"rendered":"<p>The Dock in Mac OS X is a quick-launcher for your favorite applications, but it seems to encompass more than that; it also provides the ability to minimize and maximize windows as well as to quickly swap between running apps with a keystroke (apple-tab), which may well be my most frequently executed keystroke, second only to ctrl-K in emacs.  But sometimes, the Dock hangs.  Suddenly, you&#8217;re paralyzed, only able to work within the current app (and possibly only its currently window).  Ugh.  Rebooting does solve this, but that seems like a big hammer.  I&#8217;ve looked for a &#8220;restart the Dock&#8221; option under the Apple menu (nope) or for Dock entry on the list of apps you can &#8220;Force Quit&#8221; (and hopefully Force Restart).. nope.<\/p>\n<p>The most recent time this happened, I was left with only Firefox working, so I was able to google while in a Dockless state.  I came across <a href=\"http:\/\/www.acmetech.com\/blog\/2005\/09\/30\/mac-os-x-restart-the-dock\/\">this tip<\/a>, which gives the so-obvious-in-retrospect Unix-flavor solution:<\/p>\n<blockquote>\n<ol>\n<li>Find &#8220;Dock&#8221; in your current list of processes (<tt>ps -auxww | grep Dock<\/tt>).\n<li>Get its process id.\n<li>Send it a hangup signal to force a restart (<tt>kill -HUP &lt;pid&gt;<\/tt>).\n<\/ol>\n<\/blockquote>\n<p>Done!  (A single-line AppleScript solution is also mentioned.  Someday I may venture into the world of AppleScripting.  As of now, it is a complete unknown to me.)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The Dock in Mac OS X is a quick-launcher for your favorite applications, but it seems to encompass more than that; it also provides the ability to minimize and maximize windows as well as to quickly swap between running apps with a keystroke (apple-tab), which may well be my most frequently executed keystroke, second only [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[23],"tags":[],"_links":{"self":[{"href":"https:\/\/www.wkiri.com\/today\/index.php?rest_route=\/wp\/v2\/posts\/100"}],"collection":[{"href":"https:\/\/www.wkiri.com\/today\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wkiri.com\/today\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wkiri.com\/today\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wkiri.com\/today\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=100"}],"version-history":[{"count":0,"href":"https:\/\/www.wkiri.com\/today\/index.php?rest_route=\/wp\/v2\/posts\/100\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wkiri.com\/today\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=100"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wkiri.com\/today\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=100"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wkiri.com\/today\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=100"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}