-- get image
tell application "Address Book" to set theImage to image of first
person whose name starts with "e"
-- save file to disk
set F to "/tmp/foo.tiff" as POSIX file
set F to open for access F with write permission
write theImage to F
close access F
then you can use the /tmo/foo.tiff file in "load image".
TIP: instead of getting the buddy picture as TIFF data, you could
discover its original path on disk and pass it to load image. probably
under ~/Library/Images/iChat Recent Pictures, i think.
bye!
Em 23/07/2005, às 19:14, Jasper Van Proeyen escreveu:
I'm making this app, where one's buddy picture from iChat has to be
saved as a picture file (preferably TIFF), so I can load it into an
image view. Next to this I want the same thing for the current iTunes
artwork (if available).
I'm capable of assigning a variable to this data, but that's where I'm
stuck.
I tried to just accomplish the saving part in Script Editor, but
whatever I try, I always get a
"Can't make «data TIFF (... a lot of hexademical values ...) » into
type picture."-message.