I'm looking for a way to change the appearance of empty folders within finder in order to distinguish them from folders with contents.
Does anyone know of a way to do this, either through third party software, through the OS, or programmatically?
findericonsmacososx lion
I'm looking for a way to change the appearance of empty folders within finder in order to distinguish them from folders with contents.
Does anyone know of a way to do this, either through third party software, through the OS, or programmatically?
Best Answer
This simple script goes through all empty folders starting from, for example,
~/Desktop
, and applying the color7
, for grey.Change these values to your liking, e.g. the folder to
~/Documents
to go through all your files in the Documents folder. The label colors start at0
for none, and7
is the highest number.To run this script, open a terminal through Applications/Utilities/Terminal.app, and open a text editor like
nano
.Paste the contents, and save it by entering CtrlO, then typing a name for the file. Press ↩ when done. Now make it executable with
chmod +x recolor.sh
, and run it by typing its name like~/Documents/recolor.sh
.It will print the path of all folders it applied the label to, and exit once done. Note that this will not automatically identify any new empty folders you might create in the future, so you'll have to run this script again.
One could also replace the call to
osascript
with thelabel()
function from this Stack Overflow answer.