Re: set variable to pict file contents? Set file icon to variable?
Re: set variable to pict file contents? Set file icon to variable?
- Subject: Re: set variable to pict file contents? Set file icon to variable?
- From: Axel Luttgens <email@hidden>
- Date: Tue, 31 Jul 2001 11:00:04 +0200
- Organization: ---
Having a look at Finder's dictionary, you'll notice that the class of the icon
of an item is "icon family".
An icon family in fact is an OS data structure, normally stored in the
resource fork of a file; it consists of several resources, a list of them
being given at the end of Finder's dictionary.
And that's the problem: an icon family (or one of its components) and a
picture are completely different data structures.
So, you can't do something like "set icon of file... to picture of...".
Unless AppleScript provided some way of conversion between those data types
(see also my post
"Re: Icon picture: Trying again and sharing results"); but this isn't the
case...
Without such tools embedded in AS, you have to use a scriptable graphics
application, or perhaps an OSAX.
Regards,
Axel