• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: set variable to pict file contents? Set file icon to variable?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: set variable to pict file contents? Set file icon to variable?
      • From: Mike Skinner <email@hidden>
References: 
 >set variable to pict file contents? Set file icon to variable? (From: Mike Skinner <email@hidden>)

  • Prev by Date: Re: Icon picture: Trying again and sharing results
  • Next by Date: Acrobat 5, Save as PDF?
  • Previous by thread: set variable to pict file contents? Set file icon to variable?
  • Next by thread: Re: set variable to pict file contents? Set file icon to variable?
  • Index(es):
    • Date
    • Thread