Tutorial Original: http://m.blog.csdn.net/blog/i0S123tianzhuang/25736223
-booltrue-boolfalse and then restart the Finder with the Killall Finder command.
Production "toggle Hidden files" service:
- Enter Automator in Spotlight, launch Automator
- in New document type Select service
- search for "run Shell in the Library search bar script", double-click it or drag it to the right
- to paste the script below, replacing the default"cat"
status=" defaults read Com.apple.finder appleshowallfiles '
Now, open Finder, select "finder"-"Service"-"toogle Hidden files" menu command, you can switch hidden files. (Note that this command will kill the Finder)
To set a shortcut key for the "toggle Hidden files" command:
- Open "System Preferences"-"Keyboard"
- Select the shortcut key page
- Select services from the list on the left, and find "toggle Hidden files" in the list on the right.
- Click on the "Add shortcut" text to the right, the text box appears, press "command+shift+.", set its shortcut key to??.
If you cancel the shortcut key, the same action, the text box is pressed "delete", the shortcut text box is emptied.
Show hidden files OSX 10.10