Re: Executing AppleScripts from an 'AXTrustedProcess'
Re: Executing AppleScripts from an 'AXTrustedProcess'
- Subject: Re: Executing AppleScripts from an 'AXTrustedProcess'
- From: Bill Cheeseman <email@hidden>
- Date: Tue, 03 Feb 2009 19:05:24 -0500
- Thread-topic: Executing AppleScripts from an 'AXTrustedProcess'
on 2009-02-03 6:56 PM, Tobias Zimmerman at email@hidden wrote:
>> From: Rainer Brockerhoff <email@hidden>
>> For your specific case, why don't you move the windows directly using
>> Accessibility? (I'm doing this myself in an upcoming app.) It's more work but
>> rarely fails.
>
> This sounds intriguing. Can you point me at a good place to start
> researching how to do this (or, even better, give me an example?) I
> am an amateur, just getting started with Cocoa, and had done all of
> this in pure applescript before hand, so that is where I am coming
> from.
The accessibility API is not a Cocoa API. It's a system API that can be used
from within a Cocoa application, but it will require you to become
comfortable with plain C system API's that have more in common with Carbon
than Cocoa.
Once you get it, it's perfectly easy to do. But there is a learning curve.
There is some documentation, but it's a bit sketchy.
--
Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
www.quecheesoftware.com
PreFab Software - www.prefabsoftware.com
_______________________________________________
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