💻 Software
Mac OS X: How to change the color label of files from the Terminal
Fresh5 days ago
Mar 15, 202619637 viewsConfidence Score0%
0%
Problem
Is there a way I can set the color label of a file to some color when in the Terminal? I know that the following command lists some info about what the color currently is, but I can't figure out how to do something about it. Like change it. The reason I would like to know is that I want to recursiv…
Error Output
mdls -name kMDItemFSLabel somefile.ext
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: Mac OS X: How to change the color label of files from the Terminal
Low Risk
Based on the responses here and in referenced posts, I made the following function and added it to my ~/.bash_profile file: >
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix