Jump to content

Hidden Files Toggle


Recommended Posts

That's really weird that it's not working on your system. It's a really simple script; not much to go wrong. I just deleted it from my system and reinstalled and it works as expected. It could be a permissions problem so let me try it on another system and see if I can find the problem. 

 

As for the TotalFinder option, I'll add that to the workflow as well.

Link to comment
  • 1 month later...

I'm using Mountain Lion (10.8.2), and the script was a bit dodgy for me.

 

Apparently, sometimes 10.8 likes com.apple.finder and others com.apple.Finder

 

I can't figure out a logic to but, here's a good way to alter filerevealer.sh in the package:

 

#!/bin/bash

visible=""
flag="$(defaults read com.apple.Finder AppleShowAllFiles)"
if [ $flag = "0" ]; then
    "$(defaults write com.apple.finder AppleShowAllFiles -bool true)"
    "$(defaults write com.apple.Finder AppleShowAllFiles -bool true)"
    visible="visible"
elif [ $flag = "1" ]; then
    "$(defaults write com.apple.finder AppleShowAllFiles -bool false)"
    "$(defaults write com.apple.Finder AppleShowAllFiles -bool false)"
    visible="invisible"
fi
"$(killall Finder)"
echo "Hidden files are now ${visible}."

Link to comment
  • 2 weeks later...
  • 2 weeks later...

The parameter for Mac OS X Mountain Lion defers from previous versions, I had a v.1 extension which I had to alter after upgrading to Mountain Lion. The following should clarify things:

 

 

# show hidden files pre mountain lion
defaults write com.apple.Finder AppleShowAllFiles true

# hide hidden files pre mountain lion
defaults write com.apple.Finder AppleShowAllFiles false

# show hidden files mountain lion
defaults write com.apple.Finder AppleShowAllFiles 1

# hide hidden files mountain lion
defaults write com.apple.Finder AppleShowAllFiles O

 

 

 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...