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

Re: Keystroke problems


  • Subject: Re: Keystroke problems
  • From: John Cochrane <email@hidden>
  • Date: Wed, 24 Dec 2003 08:00:06 +1100

On 23/12/2003, at 11:25 PM, Mr Tea wrote:

tell application "System Events"
tell process "TextEdit"
keystroke "a" using command down
end tell
end tell

That works (although I'm not sure what emulating the 'select all' keyboard shortcut achieves in a new, blank TextEdit document).

Thanks, "using command down" works well.
I didn't really want to select all in a new document but could not get "with command down" to work. Admittedly my example was silly.
Thanks again

John
_______________________________________________
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: 
 >Keystroke problems (From: John Cochrane <email@hidden>)
 >Re: Keystroke problems (From: Mr Tea <email@hidden>)

  • Prev by Date: Re: perl scripting in AppleScript
  • Next by Date: Re: perl scripting in AppleScript
  • Previous by thread: Re: Keystroke problems
  • Next by thread: [ANN] PreFab UI Browser pricing change
  • Index(es):
    • Date
    • Thread