Re: Image Converter needed
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