Where are directory icons stored?

Where are directory icons stored?

Post by Dale Stanb » Tue, 03 Oct 2006 17:04:22


Just wondering where the custom icons for directories are stored.

Thanks,

Dale

--
XXXX@XXXXX.COM
 
 
 

Where are directory icons stored?

Post by David Phil » Tue, 03 Oct 2006 23:08:43

In article < XXXX@XXXXX.COM >,



Give a folder a custom icon and look with a a tool like ResEdit,
Resorcerer, or the "ls" command in Terminal, and you'll see a file in
the top level of the directory named:

Icon\r

for most folders with custom icons.

Volumes are different. As for the Application, Home, and other icons on
the left bar, the Finder pattern matches on a set of names and provides
those icons itself. Look in:
/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources

 
 
 

Where are directory icons stored?

Post by Dale Stanb » Wed, 04 Oct 2006 08:58:35


I created a folder on the Desktop and gave it a custom icon. An ls -al
gives...

[xxx:~/Desktop/demo] dale% ls -al
total 128
drwxr-xr-x 3 dale staff 102 Oct 3 09:11 ./
drwx------ 38 dale staff 1292 Oct 3 09:11 ../
-rw-r--r-- 1 dale staff 0 Oct 3 09:11 Icon?

(if I vi demo (the directory) it shows me that Icon? is actually Icon^M
which is \r of course). It's 0 bytes, so I presume the icon is actually
stored in the resource fork (I'm presuming ls is not resource aware).

I used ResKnife but I couldn't find the Icon file within it (but the
behaviour was a bit inconsistent, so I'm not sure that that's a sign
either way).

Dale

--
XXXX@XXXXX.COM
 
 
 

Where are directory icons stored?

Post by David Phil » Wed, 04 Oct 2006 10:15:07

In article < XXXX@XXXXX.COM >,




Open the Icon\r with ResEdit or Resorcerer, and you'll see it has an
'icns' resource, -16455.

Iconographer will open it for you if you select the folder.
 
 
 

Where are directory icons stored?

Post by Dale Stanb » Wed, 04 Oct 2006 11:05:36


That did the trick. Thank you!

dale

--
XXXX@XXXXX.COM