Re: Need Type Command for OS X
Re: Need Type Command for OS X
- Subject: Re: Need Type Command for OS X
- From: John Delacour <email@hidden>
- Date: Sun, 13 Jul 2003 22:32:13 +0100
- Mac-eudora-version: 6.0a26
At 10:45 am -0700 13/7/03, Howard Sambol wrote:
To all:
I Need Type Command for OS X Applescript. I had an extension for AS
in OS 9 but cannot find the equivalent for OS X. This command allows
you to use a "type" command inside a script. Thanks!
From "System Events" 1.2.1 dictionary:
keystroke: cause the target process to behave as if keystrokes were entered
keystroke Unicode text -- The keystrokes to be sent.
[with option down/control down/shift down/command down] --
modifiers with which the keystrokes are to be entered
This ought to work:
tell app "System Events" to tell process "xxxx"
set frontmost to true
keystroke "a"
end
_______________________________________________
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.