• 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: "Steven D.Majewski" <email@hidden>
  • Date: Thu, 11 Nov 2004 14:52:35 -0500


On Nov 11, 2004, at 2:01 PM, Dave Stewart wrote:

On Nov 11, 2004, at 10:38 AM, Bernardo Hoehl pondered:

Hi Dave,

tell application "System Events"
	keystroke "e" using {command down, control down}
end tell

Do I have to activate UI Scripting on Systems Preferences for this to work?

Yup, GUI scripting won't work at all unless you activate the "Enable access for assistive devices" checkbox in System Preferences -> Universal Access pane.




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


On Nov 11, 2004, at 9:29 AM, Bernardo Hoehl pondered:

Hi Folks,


I am trying to create a script for my wife, to export her screenshots from pdf to jpg.




_______________________________________________ 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: Exporting pdf to jpeg using preview
      • From: Bernardo Hoehl <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>)

  • Prev by Date: AppleScript Syntax References -- WAS: Re: strcat in applescript?
  • Next by Date: Re: Exporting pdf to jpeg using preview
  • Previous by thread: Re: Exporting pdf to jpeg using preview
  • Next by thread: Re: Exporting pdf to jpeg using preview
  • Index(es):
    • Date
    • Thread