Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Saving pictures



Thanks Aurelio!
That's already one step in the right direction. I think this answer totally solved my problem (will test it out immediately).

Regards,
Jasper.

On Jul 28, 2005, at 1:46 AM, Aurelio Marinho Jargas wrote:

hi jasper,

-- 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.




-- 
Aurélio Marinho Jargas - Conectiva

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-studio mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-studio mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-studio/email@hidden

This email sent to email@hidden

References: 
 >Saving pictures (From: Jasper Van Proeyen <email@hidden>)
 >Re: Saving pictures (From: Aurelio Marinho Jargas <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.