Re: Applescript recording in Cocoa?
Re: Applescript recording in Cocoa?
- Subject: Re: Applescript recording in Cocoa?
- From: Nicholas Riley <email@hidden>
- Date: Thu, 26 Sep 2002 14:38:22 -0500
- Mail-followup-to: Olivier <email@hidden>, cocoa apple <email@hidden>
On Thu, Sep 26, 2002 at 11:09:25AM -0500, Olivier wrote:
>
Is that even possible. I developed an app which use the carbon API to
>
send event out to other app and none of those have ever get recorded.
>
Now I'm writing a cocoa app that is scriptable that i am factoring
>
(sending event to myself) using the script command. I do not see any
>
parameter for allowing those to be recorded, so I'm wondering if
>
anybody ever manage to send an event out and have it recordable.
There's no support for this, and I'd imagine it would be rather hard
to manage. The best way to make an app recordable is by having it
send events to itself for all user-initiated commands, as you're
doing, and in fact around the time of OS X Server the plan was to
extend Cocoa to do just that. Somehow in the following year or so
recordability was deprecated by Apple for no good reason (probably the
usual laziness/results of time pressure in implementationon that
pervades OS X); note that the OS X Finder is no longer recordable.
You could still request it, and maybe for the next major release
post-Jaguar (10.4?) the Cocoa folks will have some time. Cocoa
recordability sounds to me like it'd be a pretty massive task, though.
--
=Nicholas Riley <email@hidden> | <
http://www.uiuc.edu/ph/www/njriley>
Pablo Research Group, Department of Computer Science and
Medical Scholars Program, University of Illinois at Urbana-Champaign
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.