Welcome to MacBoardz.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Where are directory icons stored?

 
   Macintosh computer (Home) -> General Discussion RSS
Next:  Recent excel files do not appear in project libra..  
Author Message
Dale Stanbrough2

External


Since: Oct 25, 2003
Posts: 156



(Msg. 1) Posted: Mon Oct 02, 2006 4:55 am
Post subject: Where are directory icons stored?
Archived from groups: comp>sys>mac>programmer>misc (more info?)

Just wondering where the custom icons for directories are stored.

Thanks,

Dale

--
dstanbro.RemoveThis@spam.o.matic.bigpond.net.au

 >> Stay informed about: Where are directory icons stored? 
Back to top
Login to vote
David Phillip Oste

External


Since: Apr 25, 2004
Posts: 974



(Msg. 2) Posted: Mon Oct 02, 2006 10:55 am
Post subject: Re: Where are directory icons stored? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article ,
Dale Stanbrough wrote:

> Just wondering where the custom icons for directories are stored.
>
> Thanks,

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

 >> Stay informed about: Where are directory icons stored? 
Back to top
Login to vote
Dale Stanbrough2

External


Since: Oct 25, 2003
Posts: 156



(Msg. 3) Posted: Mon Oct 02, 2006 8:55 pm
Post subject: Re: Where are directory icons stored? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

David Phillip Oster wrote:

> 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.

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

--
dstanbro.TakeThisOut@spam.o.matic.bigpond.net.au
 >> Stay informed about: Where are directory icons stored? 
Back to top
Login to vote
David Phillip Oste

External


Since: Apr 25, 2004
Posts: 974



(Msg. 4) Posted: Mon Oct 02, 2006 10:55 pm
Post subject: Re: Where are directory icons stored? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article ,
Dale Stanbrough wrote:

> David Phillip Oster wrote:
>
> > 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.
>
> 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).

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.
 >> Stay informed about: Where are directory icons stored? 
Back to top
Login to vote
Dale Stanbrough2

External


Since: Oct 25, 2003
Posts: 156



(Msg. 5) Posted: Mon Oct 02, 2006 10:55 pm
Post subject: Re: Where are directory icons stored? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

David Phillip Oster wrote:


> 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.

That did the trick. Thank you!

dale

--
dstanbro RemoveThis @spam.o.matic.bigpond.net.au
 >> Stay informed about: Where are directory icons stored? 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Finding the directory... - Is is possible to find out which directory a component (Mac OS X) resides and executes in ? If the package maker is used to install the component, can the package maker generate info to the plist, which specifies where the component was installed during...

forcing .dmg to open as icons? - Is it possible to force a .dmg to open in the finder with view "as icons" even if the user has set the "Open new windows in column view" preference? If so, how do I do this? Thanks, -- Ronald Florence www.18james.com

Howto observe file directory changes - Hey, i must write an application that displays the directory structure and gets notified if something change in some user specified directories which can be up to 500. Windows has an notification API for this. Linux und some other unix systems have FA...

Mach-O bundle application icons? - Hi, I've tried everything I can think of, and I'm stumped. I have a .icns file, and I want it to be the icon for a bundle package I've created (an Audio Unit component). (I'll refer to the app as MyApp here.) I've put MyApp.icns into the folde...

Adding Icons to created alias files - I am creating alias files with both the 'alis' resource and 'icns' resource. I am using a combination of GetIconRef and GetIconRefFromFile to get the proper icons. This works with most files except I occasionally get an OS 9 icon instead of the proper OS...
   Macintosh computer (Home) -> General Discussion All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]