Jump to content

Toggle Hidden Files workflow

Recommended Posts

FYI.  Unless you have already created the value, defaults write com.apple.finder AppleShowAllFiles -bool true, the workflow will silently fail.


error "2014-04-07 11:58:32.059 defaults[7149:d07] 

The domain/default pair of (/Users/jasonbrown/Library/Preferences/com.apple.finder, AppleShowAllFiles) does not exist" number 1

Edited by JasonB5232

Share this post

Link to post

Thank you Mark. I've updated the workflow on Packal.

I've added a small attribution, but Packal doesn't seem to want to update the description (nor the fact that it runs absolutely fine on Yosemite).

Share this post

Link to post

I made a similar workflow a while back and managed to bolt together a script filter which lets Alfred tell you if hidden files are currently visible or if they're hidden. This may or may not be useful to you :)


#check the current value and display the result as subtitle
CURVALUE=$(defaults read com.apple.finder AppleShowAllFiles -bool)

if [ $CURVALUE = 0 ]; then
	subtitle="Hidden files are currently invisible"
	subtitle="Hidden files are currently visible"

echo '<?xml version="1.0"?><items>'
echo "<item arg=\"{query}\" uid=\"ssid\" valid=\"yes\">"
echo "<title>Toggle hidden files</title>"
echo "<subtitle>$subtitle</subtitle>"
echo "<icon>icon.png</icon></item></items>"
echo "</items>"

Share this post

Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...