Re: nobody knows, or just can't be done?
Re: nobody knows, or just can't be done?
- Subject: Re: nobody knows, or just can't be done?
- From: Marco Scheurer <email@hidden>
- Date: Wed, 17 Oct 2001 20:26:50 +0200
On Wednesday, October 17, 2001, at 07:34 pm, socko wrote:
i sent out a request yesterday for help with manipulating another
application's interface items (e.g. menu items) and no one has replied.
does this mean that no one knows how to achieve this, or that it is not
possible? perhaps some Cocoa guru could shed some light on this for me.
again, i'm trying to create an application that will allow me to
manipulate the menu items of other running applications without using
AppleScript and without controlling the mouse pointer to select the menu
items and i would like to know where to start.
Not sure what you're trying to do, but in order to do something like
that, I would try:
(1) to force the target application to load some of my code;
(2) to communicate through distributed objects with that code.
(1) could be achieved using different means: with a NSInputManager; or
by launching the target from gdb with a script in which you break early,
load your bundle, and continue; or maybe by forcing the application to
load a library (haven't tried that one for a while, man dyld for more
info).
Finding menu items and exercising their actions should be
straightforward. Using other controls, such as those in dialogs, maybe
harder.
Marco Scheurer
Sen:te, Lausanne, Switzerland
http://www.sente.ch