GUI Scripting / Keystroke
GUI Scripting / Keystroke
- Subject: GUI Scripting / Keystroke
- From: James Spahr <email@hidden>
- Date: Thu, 12 Jun 2003 22:35:49 -0400
Is it possible to to use GUI scripting to enter a keystroke with 2 or
more modifiers?
example:
tell application "Acrobat 6.0 Professional"
activate
end tell
tell application "System Events"
tell process "Acrobat 6.0 Professional.app"
keystroke "o" with command and with shift down
end tell
end tell
obviously, this will not compile. It'd like to be able to send a
command-shift-O to Acrobat. (this starts the create PDF from webpage
command). And no, there is no scripting interface for this command :(
Also, using the canned 'do_submenu' command from apple doen't seem to
work either. This command returns 'true', but nothing happens in the
app:
do_submenu("Acrobat 6.0 Professional.app", "File", "Create PDF", "From
Web Page...")
Any thoughts?
James.
--
This email was brought to you by the letter G
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.