![]() 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 For a folder there is magic (which is empty and hidden) file Icon$'\r' inside the folder. It may be a little confusing in the figure below, but after clicking, the icon will change to a bordered state. ![]() 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' Click this box so that it is checked and navigate to the Apple Logo image file (or whatever. You will see an option labelled Custom Icon with a small picture of an alien next to it. To change the icon for a specific folder on your Mac, simply right click on that folder and select ‘Get Info’. Hide the magic icon file inside current folder (press ⇧⌘. How to change icons for a specific folder. ![]() 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
0 Comments
Leave a Reply. |