CURL JPEG to PICT?
CURL JPEG to PICT?
- Subject: CURL JPEG to PICT?
- From: Bruce Robertson <email@hidden>
- Date: Sat, 18 Dec 2004 19:57:19 -0800
I can use a shell script and curl to grab an image, say a jpg image. Is
there some way to then convert this into a PICT format?
This is for setting the value of Filemaker container fields.
If you do a "full" import of a jpg into a container field, then copy the
result, then use applescript "the clipboard as record" to examine the
result, you will see that the resulting list contains size data, JPEG
picture data, and picture data.
Or perhaps there is another way to deal with this. Again, if you use curl
and a shell script to retrieve a jpg image to an applescript variable, you
get upper ascii characters.
For example see result of this:
set myURL to
"http://images.apple.com/home/2004/images/ipodphoto2right20041214.jpg"
do shell script "curl " & myURL
Set imagedata to result
This is like reading the raw image file. How can I convert this into a
format that I can use with Filemaker, like the following. It doesn¹t work
but I hope you get the idea:
Set data cell "Image" of record 1 to imagedata
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden