![]() ![]() For a folder there is magic (which is empty and hidden) file Icon$'\r' inside the folder. 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' Hide the magic icon file inside current folder (press ⇧⌘. 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. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |