On 7/28/07 3:50 AM, "Christopher Nebel" <email@hidden> wrote:
> That works just fine -- in fact, it's what iChat does these days --
> but that wasn't really Daniel's question. Given that declaration, you
> can copy images around within iChat -- say, from one buddy to another
> -- but setting the image to an image from some random file is, er,
> harder. The basic problem is that AppleScript doesn't have any real
> "image" value type of its own. You could probably fake it by reading
> from a TIFF file "as «class TIFF»", which should give you a data blob
> value of a sort that iChat will accept. (Haven't tried it myself,
> though, and it's not exactly what you'd call obvious in any case.)
There is some sample code here that does this (sets the iChat image using
AppleScript and TIFF images based on files on disk):
http://www.macosxhints.com/dlfiles/ichatstatusimage.zip
I'm trying to follow iChat's lead but haven't gotten it to work yet.
For the icon itself I wouldn't lose a ton of sleep if I couldn't make it
work, but I also have a (read-only) pdf property I need to offer so knowing
more about how applescripters handle binary date is helpful.
Thanks.
~ Mike
--
Work: http://ClickableBliss.com
Play: http://MikeZornek.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-implementors mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-implementors/email@hidden
This email sent to email@hidden