Re: Non-AppleScript access to GUI scripting (System Events) plug-in?
Re: Non-AppleScript access to GUI scripting (System Events) plug-in?
- Subject: Re: Non-AppleScript access to GUI scripting (System Events) plug-in?
- From: Christopher Nebel <email@hidden>
- Date: Mon, 31 Mar 2003 15:05:24 -0800
On Sunday, March 30, 2003, at 11:17 PM, Ken Woodruff wrote:
I'm working on a utility (written in C++/Carbon) that generates
scripts for
a non-scriptable application. The scripts make heavy use of the GUI
capabilities (particularly "keystroke") of the System Events scripting
plug-in. After much struggle (this is my first ever Mac program) it's
starting to work (sort of), but has some flaws, including the fact that
users have to execute the scripts after they're generated, and the
lack of
sub-second delays makes the scripts run pretty slow (since I have to
put a
delay after most operations).
I'm curious if there's some way to use the Apple Event Manager (or a
similar
facility) to directly communicate with the System Events plug-in from
my
Carbon app, by-passing Apple Script altogether. Anyone out there tried
something like this? Think it can be made to work? Is there a
different
list I should ask this question on?
The GUI Scripting stuff is built on the new Accessibility APIs -- see
<
http://developer.apple.com/techpubs/macosx/ReleaseNotes/
AssistiveAPI.html>. (As A. Oliver suggested, you could also post
keyboard and mouse events, but it's harder. Consider how many mouse
actions are involved in picking a menu item.)
You're not going to get much help on this here, since most people on
this list don't do C. However, there's an Apple-hosted mailing list on
precisely this topic: see
<
http://lists.apple.com/mailman/listinfo/accessibility-dev>.
Incidentally, fractional input for "delay" is a planned future feature.
--Chris Nebel
Apple Development Tools
_______________________________________________
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.