To make cocoa application start everytime when another "stranger"-program starts
To make cocoa application start everytime when another "stranger"-program starts
- Subject: To make cocoa application start everytime when another "stranger"-program starts
- From: eveningnick eveningnick <email@hidden>
- Date: Tue, 21 Sep 2010 23:04:12 +0300
Hello
I have written an application, that interacts with another "stranger"-program by Applescript. The problem that i need this 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).
I am new to OS X programming and to unix programming, didn't know where to write this. If it's a wrong mailinglist, please point me whiich one is the right :)
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).
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 - if someone could suggest where to read about 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.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Installer-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden