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

System Events Keystroke


  • Subject: System Events Keystroke
  • From: John Dulion <email@hidden>
  • Date: Tue, 20 Feb 2007 11:34:13 -0500
  • Thread-topic: System Events Keystroke

Title: System Events Keystroke
Hello,
I cannot get Text Edit to save. I am closing the window after my text is written and then I paste in my text to name file. I then need it to "click" the save button or the return key. Any help would be appreciated.

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


Thanks,
 
John
 _______________________________________________
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

  • Follow-Ups:
    • Re: System Events Keystroke
      • From: "Steven D. Majewski" <email@hidden>
    • Re: System Events Keystroke
      • From: Daniel Jalkut <email@hidden>
  • Prev by Date: Re: so what's going on here?
  • Next by Date: Re: System Events Keystroke
  • Previous by thread: Re: FileMaker--how to match and flag IDs in two tables
  • Next by thread: Re: System Events Keystroke
  • Index(es):
    • Date
    • Thread