Executing AppleScripts from an 'AXTrustedProcess'
Executing AppleScripts from an 'AXTrustedProcess'
- Subject: Executing AppleScripts from an 'AXTrustedProcess'
- From: Tobias Zimmerman <email@hidden>
- Date: Mon, 2 Feb 2009 14:53:17 -0500
I am working on an application that moves windows between displays by
executing AppleScripts (primarily against "System Events"). I have
found that granting my application rights using AXMakeProcessTrusted
(or, more accurately, the command line equiv of 'sudo chown
:accessibility appname; sudo chmod g+s appname'), causes the
AppleScripts to fail with error -2709 (cannot access scripting
dictionary). (I also tried after calling AXMakeProcessTrusted on my
app from a helper agent
First, is this a bug, or a security feature that restricts trusted
processes from executing AppleScripts that call other applications'
scripting dictionaries?
Second, is there a way around it, or am I stuck requiring my users to
turn on "Enable access for assistive devices" globally? When that is
on, the app works fine; but when it is granted individual permissions
it fails.
Any and all thoughts would be most appreciated.
Thanks
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Accessibility-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden