{"id":580,"date":"2010-10-13T14:05:35","date_gmt":"2010-10-13T20:05:35","guid":{"rendered":"http:\/\/blogs.icta.net\/slty\/?p=580"},"modified":"2011-03-07T17:09:12","modified_gmt":"2011-03-07T23:09:12","slug":"harder-on-mac","status":"publish","type":"post","link":"https:\/\/blogs.icta.net\/slty\/2010\/10\/13\/harder-on-mac\/","title":{"rendered":"What&#8217;s Harder On The Mac?"},"content":{"rendered":"<p><a href=\"https:\/\/blogs.icta.net\/slty\/files\/2010\/10\/mswin-showhidden.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-581 alignright\" style=\"margin-bottom: 2px;\" title=\"MS Windows: Show Hidden Files\" src=\"..\/files\/2010\/10\/mswin-showhidden-224x300.jpg\" alt=\"MS Windows: Show Hidden Files\" width=\"224\" height=\"300\" srcset=\"https:\/\/blogs.icta.net\/slty\/files\/2010\/10\/mswin-showhidden-224x300.jpg 224w, https:\/\/blogs.icta.net\/slty\/files\/2010\/10\/mswin-showhidden.jpg 419w\" sizes=\"auto, (max-width: 224px) 100vw, 224px\" \/><\/a>The Mac is well known as an easy, reliable computer.<\/p>\n<p>It only took me five minutes to discover that Mac marketing hype has its limits.<\/p>\n<p>Administrating a Mac server requires the ability to look at a variety of configuration files, particularly when doing anything beyond the bare basics.<\/p>\n<p>So, one of my first goals was to make it easy to see the &#8220;hidden&#8221; files on the computer.<\/p>\n<p>It&#8217;s easy on Windows. Just open up Tools-&gt;Options and change a checkbox or two.<\/p>\n<p><em>How about on the mac?<\/em><\/p>\n<p>Nope, there&#8217;s no option for this. It&#8217;s not in the user guide. Nowhere. I guess they just assume people don&#8217;t need to see hidden files.<\/p>\n<p>So, I searched Google&#8230; and found a good set of instructions. Here&#8217;s what it takes:<\/p>\n<blockquote><p>1. Open Automator (in your Applications folder) and choose Service from the list of templates provided and click the Choose button.<\/p>\n<p>2 In the left hand column under Library, select Utilities.<\/p>\n<p>3. In the second column, drag \u201cRun Shell Script\u201d to the right hand pane.<\/p>\n<p>4. At the top of the right hand pane where you dragged the Run Shell Script action, click on the right-hand popup menu and change \u201cany application\u201d to \u201c<span>Finder<\/span>\u201d. This sets the service so it only appears and can be activated by the keyboard shortcut when <span>Finder<\/span> is the active application.<\/p>\n<p>5. Then click on the popup menu next to \u201cService receives\u201d and choose \u201cno input\u201d. It\u2019s important you do this step after step 4 because if you do the reverse, <span>Finder<\/span> won\u2019t be available as an option in the right hand menu.<\/p>\n<p>6. Copy and paste the following text into the empty text area of the Run Shell Script action:<\/p>\n<p>7.<\/p>\n<pre>osascript -e 'tell application \"<span>Finder<\/span>\" to quit'\r\nSHOWHIDDEN=`defaults read com.apple.<span>finder<\/span> AppleShowAllFiles`\r\nif [ $SHOWHIDDEN -eq 1 ]; then\r\n   defaults write com.apple.finder AppleShowAllFiles -bool FALSE\r\nelse\r\n   defaults write com.apple.finder AppleShowAllFiles -bool TRUE\r\nfi\r\nosascript -e 'tell application \"Finder\" to activate'<\/pre>\n<p><a href=\"http:\/\/artofgeek.com\/wp-content\/uploads\/2009\/09\/Toggle-Hidden-Files-Automator-Action.png\">Completed Automator action, ready to save (click to enlarge)<\/a><br \/>\n8. Choose File\u2013&gt;Save, and give the new service a meaningful name like \u201cToggle <span>Hidden<\/span> Files\u201d that will appear in the Services menu. Once you\u2019ve done that, you can go to the Services menu (located in the current application menu, next to the Apple menu) and your newly created service should appear there. You can even run it, it\u2019s already functional, just lacking a keyboard shortcut.<\/p>\n<p>9. Open System Preferences\u2013&gt;Keyboard\u2013&gt;Keyboard Shortcuts and select Services in the left column.<\/p>\n<p>10. <a href=\"http:\/\/artofgeek.com\/wp-content\/uploads\/2009\/09\/Toggle-Hidden-Files-Keyboard-Shortcut.png\">Setting the keyboard shortcut (click to enlarge)<\/a><br \/>\n11. Scroll down to the bottom and under the General category, you should see your newly created service listed there. Select it, then Double-click close to the right side of the selected line to reveal a field where you can enter a custom keyboard shortcut. Enter \u201cShift+Command+.\u201d (might as well keep it consistent with the shortcut used in open\/save dialog boxes), and then quit System Preferences.<\/p><\/blockquote>\n<p>The good news: follow those instructions carefully, and you will now be able to view or hide the hidden files. (By pressing Shift, Command and &#8220;+&#8221; together.)<\/p>\n<hr \/>\n<p><strong>Update (March 7, 2011):<\/strong> A friend has discovered an easier solution, albeit still non-standard. The built-in <a href=\"http:\/\/support.apple.com\/kb\/ht2492\">Dashboard app<\/a> supports several thousand user-supplied &#8220;widget&#8221; mini-apps. One of those apps is the <a href=\"http:\/\/www.apple.com\/downloads\/dashboard\/developer\/hiddenfiles_matthansen.html\">Hidden Files widget<\/a>. With that widget installed (and the Dashboard icon dragged to your icon bar), toggling hidden file visibility is as simple as firing up the Dashboard, clicking on the Widget, and re-hiding the Dashboard.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The Mac is well known as an easy, reliable computer. It only took me five minutes to discover that Mac marketing hype has its limits. Administrating a Mac server requires the ability to look at a variety of configuration files, particularly when doing anything beyond the bare basics. So, one of my first goals was [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[22,1172],"tags":[],"coauthors":[],"class_list":["post-580","post","type-post","status-publish","format-standard","hentry","category-info-tech","category-mac"],"_links":{"self":[{"href":"https:\/\/blogs.icta.net\/slty\/wp-json\/wp\/v2\/posts\/580","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.icta.net\/slty\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.icta.net\/slty\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.icta.net\/slty\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.icta.net\/slty\/wp-json\/wp\/v2\/comments?post=580"}],"version-history":[{"count":11,"href":"https:\/\/blogs.icta.net\/slty\/wp-json\/wp\/v2\/posts\/580\/revisions"}],"predecessor-version":[{"id":587,"href":"https:\/\/blogs.icta.net\/slty\/wp-json\/wp\/v2\/posts\/580\/revisions\/587"}],"wp:attachment":[{"href":"https:\/\/blogs.icta.net\/slty\/wp-json\/wp\/v2\/media?parent=580"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.icta.net\/slty\/wp-json\/wp\/v2\/categories?post=580"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.icta.net\/slty\/wp-json\/wp\/v2\/tags?post=580"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/blogs.icta.net\/slty\/wp-json\/wp\/v2\/coauthors?post=580"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}