To make an application start everytime when another program starts
To make an application start everytime when another program starts
- Subject: To make an application start everytime when another program starts
- From: eveningnick eveningnick <email@hidden>
- Date: Fri, 24 Sep 2010 00:42:06 +0300
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 (email@hidden)
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:
This email sent to email@hidden