Exthide

From Shaun Rowland Wiki

Jump to: navigation, search

Exthide is a command like utility that will allow you to hide or unhide file extensions when viewed in Mac OS X Finder. When I moved to Mac OS X I copied a lot of data from my Windows Vista PC. These files all had file extensions, but I started saving other files without them. I am very picky about stuff like that, and at the time I could find no way to fix this on the command line for thousands of files. It can be fixed from Finder using the GUI, but that's not good enough.

Later I discovered that you can do this from the command line if you have the developer tools installed:

SetFile -a E fileName.ext

I wrote the exthide program to solve this problem without using SetFile because it requires the developer tools to be installed (and it is harder to use An example of its use is below:

[rowland@rowland: foo]$ ls
bar.txt baz.txt

[rowland@rowland: foo]$ exthide *.txt
Hiding extension for: bar.txt
Hiding extension for: baz.txt

[rowland@rowland: foo]$ extunhide *.txt
Unhiding extension for: bar.txt
Unhiding extension for: baz.txt

The source code to Exthide is available in a Git repository and a binary package is available here.

The Exthide package can be installed to /usr/local/bin and uninstalled by doing the following:

tar -vxzf exthide-1.0.tar.gz
cd exthide-1.0
make install
make uninstall

Software Projects

Personal tools