Jan. 29th, 2010

piranha: red origami crane (Default)
hidden files. the OS doesn't show them. and there is no quickie toggle to display them. which is normally not an issue, since most people don't need to see them, and this is meant to protect the files from inadvertant deletion.

but there is one obvious circumstance in which one does need to see them: web development. .htaccess and .htpassword for example.

luckily underneath the mac GUI lies a unix operating system, so one can set the files to display via the terminal. but i don't want to see them all the time, just when i am working on web stuff. and i kinda like finding native mac solutions for such problems.

i ended up creating two automator actions:

drag Run Shell Script into a new workflow. type:

defaults write com.apple.finder AppleShowAllFiles TRUE
osascript -e ‘tell application “Finder” to quit’;
osascript -e ‘tell application “Finder” to activate’;

save workflow as finder plugin with a name like ShowHidden.

now change TRUE to FALSE in the first line up there.

save workflow as finder plugin with a name like HideHidden.

they both show up in the right-click context menu under More -> Automator.
piranha: red origami crane (Default)
closeup of a patch of moss, rising from left to right, with the sun lighting only the back


very productive today; started to get a handle on a complex install i'm doing; automated tools didn't work, but i figured out how to do it manually.

Profile

piranha: red origami crane (Default)
renaissance poisson

July 2015

S M T W T F S
   123 4
567891011
12131415161718
19202122232425
262728293031 

Most Popular Tags

Expand Cut Tags

No cut tags