• 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
Keystroking a Text Field
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Keystroking a Text Field


  • Subject: Keystroking a Text Field
  • From: Dave <email@hidden>
  • Date: Wed, 01 Jul 2015 16:08:03 +0100

Hi,

on run
	tell application "TextEdit"
		activate

		set myWindow to the front window
		set myContent to "Hello Cruel World!"

		tell application "System Events" to keystroke myContent
	end tell
end run

When I run the above from the Script Editor with a Blank window open in Text Edit, the “Hello Cruel World!” string gets written to the Script Window, not the TextEdit Window, how to I get it to into the TextEdit Window?

Thanks a lot
Dave


 _______________________________________________
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/archives/applescript-users

This email sent to email@hidden


  • Follow-Ups:
    • Re: Keystroking a Text Field
      • From: Bill Cheeseman <email@hidden>
    • Re: Keystroking a Text Field
      • From: Yvan KOENIG <email@hidden>
  • Prev by Date: Skip TOC when searching in Skim
  • Next by Date: Re: Keystroking a Text Field
  • Previous by thread: Re: Skip TOC when searching in Skim
  • Next by thread: Re: Keystroking a Text Field
  • Index(es):
    • Date
    • Thread