Re: Stuffing characters
Re: Stuffing characters
- Subject: Re: Stuffing characters
- From: Matthew Smith <email@hidden>
- Date: Sun, 26 Jan 2003 15:14:55 +1100
on 26/01/2003 14:56, Jeffrey Mattox at email@hidden wrote:
>
How do I stuff characters into the keyboard stream? My application
>
(which will not be the active application) needs to output a string
>
as if it were typed on the keyboard and the string needs to be
>
received and processed by the active application.
It requires the Beta version of System Events, which is downloadable from
the Apple Developer web site. It also requires that "Enable access for
assistive devices" also be turned on in the Universal Access System
Preferences.
eg.
tell application "TextEdit" to activate
tell application "System Events"
tell process "Text Edit"
keystroke "A"
keystroke "B"
end tell
end tell
--
Matthew Smith
_______________________________________________
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.