Re: Exporting pdf to jpeg using preview
Re: Exporting pdf to jpeg using preview
- Subject: Re: Exporting pdf to jpeg using preview
- From: Bernardo Hoehl <email@hidden>
- Date: Thu, 11 Nov 2004 19:16:45 -0200
This is a real cool idea, to use Image Events...
Thanks Steve!
Here is the final code: (forgive me for trying to make speech "speak" portuguese)
on open (cookieFile)
set contagemNumeroArquivos to (count of cookieFile)
if contagemNumeroArquivos > 1 then
display dialog "Por favor, um arquivo de cada vez!
Script feito por Bernardo Höhl -- email@hidden" buttons {""} default button 1 with icon 1
else
say "abreendo arkeevo"
tell application "Image Events"
set result to cookieFile as alias
open result
save result as JPEG in (POSIX path of (path to desktop))
end tell
say "Arkeevo salvoh noh Desktop!"
end if
end open
+++++++++++++++
On 11 Nov, 2004, at 5:52 PM, Steven D.Majewski wrote:
But it's a lot simpler just to avoid all of this messy user interface scripting
and just use image events to convert PDF to jpeg. Something like the following
should work:
choose file
tell application "Image Events"
open result
save result as JPEG in (my (choose file name) as string)
end tell
( There is also 'sips' if you want to do it from the command line. )
-- Steve Majewski - University of Virginia Alderman Library
_______________________________________________
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