Hello!
I have written an application, that interacts with another
"stranger"-program by Applescript. The problem is that i need my
application to look like a plugin for "stranger program"- to display a
panel, and to be launched automatically when the Master-program starts
(and to finish, when the master program is terminated - this is solved
already using NSWorkspace's events [cocoa framework]).
I have submitted this to installer mailing list, but haven't got any
response, so decided to try my luck here :)
How could I make my application be automatically launched, when the
MasterApp process is started? Does MacOS provide any means for such
activity?
I was thinking about installing a daemon, that would watch application
start events (not sure how to do that, but i read somewhere that
Linux/BSD kernels support such a feature - when a process registers
its callback functions on processStart event). - And, if it's the only
way, could you point me where to read about these capabilities of the
kernel?
But a daemon, that is launched with the system start, and which
remains in memory all the time is not a good idea for a good
application (though, if there's no better way, i'd try to implement
it).
What could be the best way to perform this autolaunch? I would be very
thankful for any advice :)

PS: Why do i need it. I am writing a "plugin" for mac:Word, that
simplifies writing of big texts, but unfortunately Microsoft didn't
publish mac:Office Plugin SDK. Luckily for me, Word supports external
Applescipt commands. Everything is done by me, except this autolaunch,
which is a real problem. I had an idea to replace MicrosoftWord binary
in a bundle with mine (and rename original executable binary into
something like MicrosoftWord111), so when a user doubleclicks on
Word's, first my plugin starts, which launches Word. But i think it
can cause problems with license agreement, and major problems with
Autoupdates.

Thank you, George
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to