MorseCode

Hidden Files Toggle

18 posts in this topic

Hm - didn't work for me on: OS X Mountain Lion (Norwegian).  Sent you a pull request on github (which works for me)

Share this post


Link to post

Also, if you fix this can you make an option so it open totalfinder before finder? It bugs a lot when a script relaunchs alfred and you loose totalfinder :(

Share this post


Link to post

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.

Share this post


Link to post

Still not working for me. Not sure why. I will probably just continue to use ForkLift or the Alfred file browser if I need to access hidden files. I just was trying it out as an alternative.

Share this post


Link to post
I also just deleted and tried installing via AlfPT and it works fine. I'm running OS X 10.7.2, and the latest Alfred build, b70.

 

FYI - the latest build is b79.

Share this post


Link to post

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}."

Share this post


Link to post

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

 

 

 

Share this post


Link to post

Just out of curiosity, are there any downsides of restarting Finder (as is needed to show/hide hidden files)? Does it affects services like Dropbox etc?

Share this post


Link to post

Show/Hide works. But after the action and closing finder can't open it again. No new finder window or even "Open workflow folder".  :mellow:

Share this post


Link to post

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