To hide the files use the same shortcut again. To show hidden files use the shortcut: shift+cmd+. If there is not shortcut there then add shift+cmd+. There might be a shortcut there if so test it out. Go to System Preferences -> Keyboard -> Shortcuts -> Services and find the Services you made showing hidden files. Select Utilities -> Run Shell Script (drag it into the window on the right)Īdd the following code to show hidden files status=`defaults read AppleShowAllFiles`ĭefaults write AppleShowAllFiles falseĭefaults write AppleShowAllFiles true I came across another solution by using Automator.