Re: Get a file's icon???
Re: Get a file's icon???
- Subject: Re: Get a file's icon???
- From: JollyRoger <email@hidden>
- Date: Wed, 06 Mar 2002 19:57:08 -0600
On 3/6/2002 6:18 PM, "Robbie Newton" <email@hidden> wrote:
>
I have been rackN my brain all day trying to come up with a way to grab the
>
icon of a file or folder. I can't seem to find anything that can do it. I am
>
trying to show a directory of images in Filemaker... I can get the list of the
>
files VIA applescript by giving it a path to the folder. No Prob there. But I
>
would like to have it grab the thumbnail image that is set by Photoshop from
>
the 'get info' window (command - i); the icon I mean. Is there something out
>
that that can do this... an addition maybe? Even if all it did was copy the
>
icon to the clipboard that would be good enough, at this point I am at a loss
>
for any other solution, other than using generic icons based on the creator
>
type and file type (which I really do not want to do).
Yep, I've done it before. The custom icon for files is stored in the
resource fork of the file. The custom icon for folders is stored in an icon
resource in a file named ("Icon" & return) in the folder itself. You'll
need to use a scripting addition (such as Akua Sweets) to access the icon
resource.
Note: For files and folders without custom icons, you will need to get the
icon resource from the System file.
HTH
JR
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.