Re: Exporting pdf to jpeg using preview
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