• 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
CURL JPEG to PICT?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: CURL JPEG to PICT?
      • From: Andrew Oliver <email@hidden>
References: 
 >do shell script - quotation marks problem (From: Armin Egginger <email@hidden>)

  • Prev by Date: Re: Set File Creation date
  • Next by Date: Re: do shell script - quotation marks problem
  • Previous by thread: Re: do shell script - quotation marks problem
  • Next by thread: Re: CURL JPEG to PICT?
  • Index(es):
    • Date
    • Thread