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

Re: GUI Scripting / Keystroke


  • Subject: Re: GUI Scripting / Keystroke
  • From: Rob Jorgensen <email@hidden>
  • Date: Thu, 12 Jun 2003 23:03:39 -0400

At 10:35 PM -0400 6/12/03, James Spahr wrote:
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

Does this work?

keystroke "O" with command down

The uppercase O is the same as "keystroke o with shift", so all you need to add is the command key. Paul Berkowitz was kind enough to share this with me. :-)

--

Rob Jorgensen
Ohio, USA
_______________________________________________
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.

References: 
 >GUI Scripting / Keystroke (From: James Spahr <email@hidden>)

  • Prev by Date: Re: GUI Scripting / Keystroke
  • Next by Date: Re: GUI Scripting / Keystroke
  • Previous by thread: Re: GUI Scripting / Keystroke
  • Next by thread: Re: GUI Scripting / Keystroke
  • Index(es):
    • Date
    • Thread