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, 
launchd-...@lists.macosforge.org.

_______________________________________________

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