Home » How To: Use Automator to show/hide hidden files

This blog posts is one of the several guest blog posts to MikeSel.info. Posted by one of my readers Thomas Hazlett, Thomas has converted the terminal commands in my earlier post Show hidden files in OS X 10.7 or 10.8

  1. Launch -> /Aplications/Automator
  2. Select what type of workflow you would like. I feel a service is a good choice for this so go ahead and;
  3. Select -> Service
  4. At the top of the window there should be 2 combo-boxes.
  5. Select -> no input
  6. Select -> Finder.app
  7. Drag -> Run shell script; from the left panel to the right and enter the following:
is_shown=$(defaults read com.apple.finder AppleShowAllFiles)
if [ $is_shown != "YES" ]
then
defaults write com.apple.finder AppleShowAllFiles YES
else
defaults write com.apple.finder AppleShowAllFiles NO
fi

(You may have to retype the quotes around the “YES” in the if statement).

8.   Below that Drag -> Ask for confirmation and enter a message to the effect of “Do you want to relaunch finder? This will cancel any file transfers etc.”Under that,
9.  Drag -> Run shell script and enter killall Finder
10.  Save it, naming it whatever you want it to appear as under the services submenu of the Finder menu.
11.   With Finder in the foreground, click Finder in the top left -> down to Services and click your newly created Service.

Thomas Hazlett is from and still lives in Belfast, N. Ireland. He is currently studying with the Open University towards his BSc in Computing and IT however has decided to take a year out to work on his own projects; start a blog; and spend more time doing home renovations. You can find more about him at www.hazlett.info

Home » How To: Use Automator to show/hide hidden files


  • AK

    Followed it and Menu item entry works too, except for no hidden file/folder shows up.

    Update: It worked after I removed white spaces from “is_shown = $”

  • Pingback: Show hidden files Mac OS X 10.7, 10.8 and 10.9 Mavericks

  • AK

    Followed it and Menu item entry works too, except for no hidden file/folder shows up.


Page 1 of 11