

Its format is icns, encoded as an icon resource with derez. The easiest way to get the image is to copy the icon from the Get Info dialog of the folder it's contained in into the clipboard, and then create a new image from clipboard in Preview ( Cmd-N). in a hex editor) like this: $ cp Icon^M/.namedfork/rsrc Icondata You can copy the resource fork to a file (to view e.g. a file size of 0 bytes in Terminal), the actual icon data is stored in the file's resource fork.

$ ls -lO 1 danielbeck staff hidden 0 24 Apr 23:29 Icon?Ĭhange with chflags nohidden Icon^M. It's invisible in Finder, because its hidden attribute is set. in its Get Info dialog by pasting an image into the icon in the upper left corner, the Icon^M file is created.Ĭhanging a volume's icon creates a hidden. Icon^M is a file existing in all directories that have a custom icon in Finder. If letting the shell autocomplete the path in Terminal, it yields Icon^M, ^M being \r. It's name is actually Icon\r, with \r being the carriage return 0x0D.
