Keystroking a Text Field
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