• 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
Re: Image Converter needed
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Image Converter needed


  • Subject: Re: Image Converter needed
  • From: Barry Wainwright <email@hidden>
  • Date: Mon, 17 Jan 2005 15:43:23 +0000

On 17/1/05 3:29 pm, "Mark Butcher" <email@hidden> wrote:

>
> On Jan 17, 2005, at 5:24 AM, Barry Wainwright wrote:
>
>> Can anyone point me at a shell script or scripting addition that can
>> convert
>> a pdf image file to GIF, PNG or TIFF format?
>>
>> I now I could use GraphicConverter or similar, but I'm looking for
>> something
>> that is portable and likely to be found on any machine (or can be
>> easily
>> distributed with the script)
>
> Have you looked at Image Events that's built into OS X? I've never used
> it, but open its dictionary in Script Editor & take a look.
>
> MarkB
>
Yes, I took a look at that...

Application "Image Events" leads me to this bit of code:

tell application "Image Events"
    set theImage to open file (tempfile as string)
    save theImage as PNG in file outputFile without icon
    close theImage
end tell

This works fine, as does "Šas JPEGŠ", "Šas BMPŠ" and all the 8 supported
file types. Unfortunately, it doesn't allow me a GIF format :(

Still, I should be able to work round it using .PNG.

Thanks :)

--
Barry



 _______________________________________________
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: Image Converter needed
      • From: Doug McNutt <email@hidden>
    • Re: Image Converter needed
      • From: Bernard Bernu <email@hidden>
References: 
 >Re: Image Converter needed (From: Mark Butcher <email@hidden>)

  • Prev by Date: Re: set VolumeList
  • Next by Date: Re: Image Converter needed
  • Previous by thread: Re: Image Converter needed
  • Next by thread: Re: Image Converter needed
  • Index(es):
    • Date
    • Thread