DeeEmm

Pragmatism in code

Waxing lyrical about life the universe and everything software related since lunchtime 2006.

Toggle Hidden Files In Finder

This is a great little tip for showing hidden files in OSX. Normally all files are hidden, and so access to the hidden unix filesystem is not possible. This is easily overcome however. You can either permanently disable this feature by running the following command in terminal.

defaults write com.apple.Finder AppleShowAllFiles YES

or, if you need to change the visibility on a regular basis the following may be of more help

Open up the apple script editor and paste in the following code

try

set dotVisible to do shell script "defaults read com.apple.finder AppleShowAllFiles"

on error errorMessage number errorNumber

set dotVisible to 0

end try

if dotVisible = "0" then

do shell script "defaults write com.apple.finder AppleShowAllFiles 1"

else

do shell script "defaults write com.apple.finder AppleShowAllFiles 0"

end if

tell application "Finder" to quit

delay 1

tell application "Finder" to activate

Now save this as an application - call it something like 'toggle_hidden_folders'

Clicking on the toggle_hidden_folders.app now toggles the visibility of hidden files and folders.

TinyMCE - add items to style drop down
DMCMS Lost and forgotten?

Related Posts

 

Comments

No comments made yet. Be the first to submit a comment
Already Registered? Login Here
Guest
Thursday, 19 October 2017
If you'd like to register, please fill in the username, password and name fields.

Captcha Image