• 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: Exporting pdf to jpeg using preview
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: Exporting pdf to jpeg using preview (From: Dave Stewart <email@hidden>)
 >Re: Exporting pdf to jpeg using preview (From: Bernardo Hoehl <email@hidden>)
 >Re: Exporting pdf to jpeg using preview (From: Dave Stewart <email@hidden>)
 >Re: Exporting pdf to jpeg using preview (From: "Steven D.Majewski" <email@hidden>)

  • Prev by Date: RE: GUI Scripting and Acrobat 6 Pro
  • Next by Date: Illustrator CS, make new spot
  • Previous by thread: Re: Exporting pdf to jpeg using preview
  • Next by thread: Re: Exporting pdf to jpeg using preview
  • Index(es):
    • Date
    • Thread