• 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: System Events Keystroke
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: System Events Keystroke


  • Subject: Re: System Events Keystroke
  • From: Daniel Jalkut <email@hidden>
  • Date: Tue, 20 Feb 2007 12:04:03 -0500

The bad news is I also see the problem of keystroke return apparently not working on the save sheet.

The good news is this seems to work in its place:

tell process "TextEdit" to keystroke "s" using command down

Good luck!

Daniel

On Feb 20, 2007, at 11:34 AM, John Dulion wrote:

tell application "TextEdit" to activate
                tell application "System Events"
                    tell process "TextEdit" to keystroke "w" using command down
                    delay 1
                    keystroke return
                    delay 2
                    tell process "TextEdit" to keystroke "v" using command down
                    delay 2
                    tell process "TextEdit" to keystroke return —this is the action that does not happen.
               end tell

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/mailman//archives/applescript-users

This email sent to email@hidden

References: 
 >System Events Keystroke (From: John Dulion <email@hidden>)

  • Prev by Date: System Events Keystroke
  • Next by Date: Re: FM 8 layout references w/applescript - works in one file, fails in five other identical files!
  • Previous by thread: System Events Keystroke
  • Next by thread: Re: System Events Keystroke
  • Index(es):
    • Date
    • Thread