Jump to content


Photo

Hidden Files Toggle

files Finder

  • Please log in to reply
17 replies to this topic

#1 MorseCode

MorseCode

    Newbie

  • Member
  • Pip
  • 13 posts

Posted 22 January 2013 - 05:11 AM

Workflow to toggle the visiblity of hidden files in Finder. The workflow is configured to use the keyword “hid”. The workflow should also be available through AlfPT, the Alfred 2.0 Package Manager.

 

 

Download Hidden Files Toggle

 

or clone from my repo on GitHub: github.com/Morse-Code



#2 fmr

fmr

    Newbie

  • Member
  • Pip
  • 8 posts

Posted 22 January 2013 - 03:49 PM

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



#3 Jb_Bryant

Jb_Bryant

    Member

  • Member
  • PipPip
  • 95 posts

Posted 22 January 2013 - 05:38 PM

Doesn't work for me either. Relaunches Finder but no hidden files are shown.



#4 Adeiko

Adeiko

    Newbie

  • Member
  • Pip
  • 7 posts

Posted 22 January 2013 - 09:05 PM

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 :(



#5 MorseCode

MorseCode

    Newbie

  • Member
  • Pip
  • 13 posts

Posted 23 January 2013 - 04:18 PM

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.



#6 MorseCode

MorseCode

    Newbie

  • Member
  • Pip
  • 13 posts

Posted 23 January 2013 - 04:35 PM

I uploaded a new copy to see if there was something corrupt in the previous version. Download it here: http://d.pr/f/cZAc+. Let me know if you're still not able to toggle the hidden flag.



#7 Jb_Bryant

Jb_Bryant

    Member

  • Member
  • PipPip
  • 95 posts

Posted 23 January 2013 - 04:38 PM

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.



#8 MorseCode

MorseCode

    Newbie

  • Member
  • Pip
  • 13 posts

Posted 23 January 2013 - 04:39 PM

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.



#9 Jb_Bryant

Jb_Bryant

    Member

  • Member
  • PipPip
  • 95 posts

Posted 23 January 2013 - 04:50 PM

What is AlfPT?



#10 Jb_Bryant

Jb_Bryant

    Member

  • Member
  • PipPip
  • 95 posts

Posted 23 January 2013 - 04:51 PM

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.



#11 Shawn Rice

Shawn Rice

    Community Hero

  • Member
  • PipPipPip
  • 666 posts
  • LocationBrooklyn, NY

Posted 25 February 2013 - 10:14 AM

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


Find and share your workflows and themes on www.packal.org.

Some Shared Workflows: Caffeinate Control | Alfred Bundler | Alfred Cron | Workflows Help Workflow | F.lux | Barrel Roll | Sudoers
Web: Github, Me.


#12 carlesba

carlesba

    Member

  • Member
  • PipPip
  • 32 posts

Posted 06 March 2013 - 03:38 PM

Thank's! Just what I need



#13 sjugge

sjugge

    Newbie

  • Member
  • Pip
  • 5 posts
  • LocationAntwerp

Posted 14 March 2013 - 07:08 PM

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

 

 

 



#14 rosenkrieger

rosenkrieger

    Member

  • Member
  • PipPip
  • 23 posts

Posted 18 March 2013 - 07:30 AM

Once this Workflow works with Mountain Lion it will be really nice. Could use it :-)



#15 lukereative

lukereative

    Newbie

  • Member
  • Pip
  • 1 posts

Posted 18 March 2013 - 10:28 AM

I have converted my Alfred v1 extension to a workflow that definitely works with Mountain Lion 100% of the time.
Download it here - https://www.dropbox.....alfredworkflow


  • rosenkrieger and mccamel like this

#16 rosenkrieger

rosenkrieger

    Member

  • Member
  • PipPip
  • 23 posts

Posted 18 March 2013 - 10:37 AM

I have converted my Alfred v1 extension to a workflow that definitely works with Mountain Lion 100% of the time.
Download it here - https://www.dropbox.....alfredworkflow

 

Grabbed it. Installed it. Runs perfectly! 

 

Thank you :-)


Edited by rosenkrieger, 18 March 2013 - 10:38 AM.


#17 Adrian

Adrian

    Newbie

  • Member
  • Pip
  • 13 posts

Posted 21 March 2013 - 10:54 AM

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?



#18 DJay

DJay

    Member

  • Member
  • PipPip
  • 180 posts

Posted 21 March 2013 - 11:05 AM

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:


iMac 21.5 (Late 2012) | 3,1 GHz i7 | 16 GB RAM | OS X 10.10 | Safari 8.0




Also tagged with one or more of these keywords: files, Finder

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users