Show only external hard drives on the desktop

Sep 15, '02 08:51:00AM

Contributed by: Mitchell

I like to have my Mac desktop clear of any files other than the ones I am working on and haven't placed in folders yet. I also use a separate partition for a swap file. Finally, I often attach an external FireWire drive, which, when present, I would like to have appear on my desktop. Unfortunately, the Finder's "Show these Items on the desktop – Hard Disks" selection gives you all of the disks or none of them.

SetFile can be used, if you have the Developer Tools installed, to hide selected drives. A previous hint from discussed using SetFile to hide the swap partition, but it works on the startup disk as well. In this case, one types:

 % SetFile -a V /Volumes/Swap
% SetFile -a V /
This makes the swap volume and the root volume invisible, but still shows mounted external hard drives when they are present.

In dialog boxes, with Finder key commands, and the like, the computer operates normally and all partitions are visible, but I don't have my desk cluttered with drives that I know are there already. And when I have my backup drive installed, it shows up on my desktop just as it ought to.

Interestingly, when you select "Computer" from the "Go" menu on the finder, the only thing that appears is the network globe. Is this ever actually useful for anything?

Comments (7)


Mac OS X Hints
http://hints.macworld.com/article.php?story=20020915055100747