Re: AXIsProcessTrusted / AXMakeProcessTrusted
Re: AXIsProcessTrusted / AXMakeProcessTrusted
- Subject: Re: AXIsProcessTrusted / AXMakeProcessTrusted
- From: Eric Schlegel <email@hidden>
- Date: Thu, 12 May 2005 22:08:24 -0700
On May 12, 2005, at 7:16 PM, Guy English wrote:
Can someone give me a run down on AXIsProcessTrusted and
AXMakeProcessTrusted? The docs are a little lacking. My guess is that
if I call AXMakeProcessTrusted then I'll be able to use the
accessibility APIs without the user having to have turned on "Enable
access for assistive devices" manually.
Correct.
AXMakeProcessTrusted needs to
be run as root so I'm also assuming I'll need to use the technique in
AuthSample. Will I need to make the process trusted each time it runs?
Correct, and no, you don't need to do it each time.
I assume not and that these APIs are what VoiceOver uses to do it's
stuff. Does anyone have any pointers for this before I dive in?
Some info from an accessibility engineer:
AXMakeProcessTrusted is permanent. The basic idea would be to:
if (! AXAPIEnabled() && ! AXIsProcessTrusted())
{
// as root do
AXMakeProcessTrusted (path_to_exe);
}
-eric
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden