
Switch -i means "-addIcon" as extended attribute "" onto this file itself using the content of this image file. Under macOS 10.13 High Sierra command $ sips -i ImageFile.icns/png/jpg generates error -addIcon is no longer supported.

$ DeRez -only icns /Folder/With/Icon/Icon$'\r' > Icon.rsrc To extract icon data from extended attribute "" into plain text resource file (from which we know correct icns-type identifier "-16455"): $ DeRez -only icns FileWithIcon.ext > Icon.rsrc The truth is that a Mac user cannot modify the folder color or change the icons in macOS High Sierra. For a folder there is magic (which is empty and hidden) file Icon$'\r' inside the folder. You can also change the icon that represents a specific hard drive. Icon data is stored as value of extended attribute "" (Terminal command "xattr -p FileName.ext" prints the value). to show/hide hidden files in Finder): $ SetFile -a V Icon$'\r'

In the upper-left corner of the Info Sheet, you will see a smaller version of the folder icon. Then press COMMAND + I or use File > Get Info to bring up the Info Sheet. To change the icon of a folder, open Finder and select the folder you would like to change the icon of.

#CHANGE FINDER ICON MAC OS SIERRA HOW TO#
Hide the magic icon file inside current folder (press ⇧⌘. How to change the icon of files and folders. Show the icon of current folder: $ SetFile -a C. Show the icon of the file: $ SetFile -a C FileName.extĪppend resource file as value of extended attribute "" to a magic icon file inside current folder: $ Rez -a Icon.rsrc -o Icon$'\r' Create temp resource file which points to icns-file: $ echo "read 'icns' (-16455) \"Icon.icns\" " > Icon.rsrcĪppend the resource file as value of extended attribute "" to a file: $ Rez -a Icon.rsrc -o FileName.ext
