MacOS – Can you hide hidden files in specific folders (like the desktop) while keeping them shown everywhere else

desktopfinderleopardmacos

I work with hidden files all the time, but I like an uncluttered desktop. It would be nice to make files like .DS_Store, and .localized invisible just on the Desktop.

Please note I am already aware of this trusty old terminal standby:

defaults write com.apple.finder AppleShowAllFiles TRUE
killall Finder

Setting that flag to FALSE applies to everything in the system. My goal is to make an exception for the Desktop. Any suggestions?

Best Answer

Although i'm unsure how to fulfill your exact request, I use this tiny widget which gives 1 button access to hide/show hidden files.