Re: launchd detecting when an application is running

2009-06-04 Thread Tom Hohensee
Thanks for the replies. I am actually quite familiar with launchd but was thinking that maybe I had missed something. I vaguely remember reading a blog where someone had used launchd to detect the app launching event but for the life of me I cannot find it. It probably had something to d

Re: launchd detecting when an application is running

2009-06-04 Thread Greg Guerin
Tom Hohensee wrote: I have written an application that I would like to launch whenever a certain app is launched. I have used LaunchAgents in the past to detect events such as USB insertion and volume mounting to perform certain actions. I was wondering if there was a launchd.plist key th

Re: launchd detecting when an application is running

2009-06-04 Thread Jerry Krinock
One other thing I should have mentioned is that if this "certain app" that you're watching to launch happens to write a file somewhere when it launches, then you could use the directory-watching capability of launchd. I wonder if the system writes a file somewhere, when ^any^ app launches?

Re: launchd detecting when an application is running

2009-06-04 Thread Jerry Krinock
On 2009 Jun 04, at 08:40, Todd Heberlein wrote: I have written an application that I would like to launch whenever a certain app is launched. I have used LaunchAgents in the past to detect events such as USB insertion and volume mounting to perform certain actions. I was wondering if the

Re: launchd detecting when an application is running

2009-06-04 Thread Todd Heberlein
I have written an application that I would like to launch whenever a certain app is launched. I have used LaunchAgents in the past to detect events such as USB insertion and volume mounting to perform certain actions. I was wondering if there was a launchd.plist key that allowed for launc

Re: launchd detecting when an application is running

2009-06-03 Thread Kyle Sluder
On Wed, Jun 3, 2009 at 8:44 PM, Tom Hohensee wrote: > I was > wondering if there was a launchd.plist key that allowed for launchd to > detect an application startup. launchd is explicitly designed not to have this functionality. All inter-application dependencies must be carried out through some

Re: launchd detecting when an application is running

2009-06-03 Thread Tom Hohensee
On Jun 3, 2009, at 5:23 PM, Dave Keck wrote: Sorry, that question really was bad. I have written an application that I would like to launch whenever a certain app is launched. I have used LaunchAgents in the past to detect events such as USB insertion and volume mounting to perform certain

Re: launchd detecting when an application is running

2009-06-03 Thread Dave Keck
Your question is unclear and doesn't make much sense. Please give lots of clarification, and consider posting your question on a list where it's more on-topic, such as darwin-dev or launchd-dev (over at macosforge). David ___ Cocoa-dev mailing list (Co

launchd detecting when an application is running

2009-06-03 Thread Tom Hohensee
How do I configure a launchd .plist file to detect when an application running. Thanks Tom ___ 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-de