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 16:38:33 -0200
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?
It doens't seem to work for me in any way. activated or not.
I always hear just a beep, as if I hit the wrong key on the keyboard.
Thanks
Bernardo
======================
On 11 Nov, 2004, at 4:08 PM, Dave Stewart wrote:
Gee, something I can answer! ;-)
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.
Her customers are PC users and might not see the pdf files in case they don't Acrobat Reader installed.
Using jpg would be a wise precaution.
But I am stuck trying to figure out how to get System Events to press 3 keys simultaneously....
This is the code so far: (may be I make it a droplet later...)
tell application "Preview"
set x to choose file
activate
do shell script "open " & quoted form of POSIX path of x
delay 3
tell application "System Events"
keystroke "e" using command down --using control down
end tell
end tell
Thanks for any help,
Bernardo Höhl
Rio de Janeiro - Brazil
Sorry if I'm late to the party, I'm on digest mode and just now saw this. I think what you're looking for is this:
tell application "System Events"
keystroke "e" using {command down, control down}
end tell
Examples to model from can be found at Apple's site:
GUI scripting:
<http://www.apple.com/applescript/uiscripting/>
Examples:
<http://www.apple.com/applescript/uiscripting/03.html>
HTH!
Dave Stewart
Aqua~Flo Supply (Goleta CA)
dstewart at aquaflo dot com
The human mind ordinarily operates at only ten percent of its
capacity -- the rest is overhead for the operating system.
_______________________________________________
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