Re: Custom Icons?
Re: Custom Icons?
- Subject: Re: Custom Icons?
- From: Walter Ian Kaye <email@hidden>
- Date: Wed, 21 Jan 2004 14:14:02 -0800
At 01:24p -0500 01/19/2004, Graff didst inscribe upon an electronic papyrus:
Apparently you can't do this directly through AppleScript. This
topic has been discussed on this list before and to my knowledge no
one has found a solution.
- Ken
On Jan 19, 2004, at 11:37 AM, Jonathan Levi MD wrote:
Is there currently a way to get/set a Finder item's custom icon
using AppleScript?
Well, if you already have the icon *as* an icon (not a PICT on the
clipboard, but actual icon data, e.g. 'icns'), or if you are copying
one folder icon to another, then you can certainly do it. If you're
copying a folder icon, you can just copy the invisible Icon<CR> file
and use SetFile (part of the dev tools) to set the customicon flag.
If you're setting a file icon, you'll need to insert the necessary
icon resource[s] having id -16455, and then use SetFile. Finder may
need updating afterward.
I haven't done it, but I see no reason for it not to work.
-boo
bottom posting
_______________________________________________
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.