Re: To make an application start everytime when another program starts
Re: To make an application start everytime when another program starts
- Subject: Re: To make an application start everytime when another program starts
- From: Jerry Krinock <email@hidden>
- Date: Thu, 23 Sep 2010 15:20:27 -0700
On 2010 Sep 23, at 15:02, John Pannell wrote:
> I would guess you are looking to write a launchd "Agent"
Yes, in theory. In practice, it's a little messy…
> perhaps WatchPaths might be promising if Word can reliably be seen to modify the filesystem in a specific location at launch.
Yes, because unfortunately as you can see in man launchd.plist(5), launchd does not have any triggers for watching other processes launching or terminating. I know. I've read it many times looking for one :(
> Otherwise, an "always-on" agent with a run loop waiting for notification for one app is not going to use a lot of cycles :-)
Indeed, this is the other alternative.
Both alternatives will work, but both are ugly. The second is less fragile.
For your information, there is a launchd mailing list, email@hidden.
_______________________________________________
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