• 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
GUI Scripting / Keystroke
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: GUI Scripting / Keystroke
      • From: Bill Cheeseman <email@hidden>
    • Re: GUI Scripting / Keystroke
      • From: Rob Jorgensen <email@hidden>
    • Re: GUI Scripting / Keystroke
      • From: Paul Berkowitz <email@hidden>
  • Prev by Date: Re: Resurgence in AppleScript interest
  • Next by Date: Complete & Total Novice
  • Previous by thread: Dock Scripting
  • Next by thread: Re: GUI Scripting / Keystroke
  • Index(es):
    • Date
    • Thread