• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: launchd detecting when an application is running
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: launchd detecting when an application is running


  • Subject: Re: launchd detecting when an application is running
  • From: Greg Guerin <email@hidden>
  • Date: Wed, 3 Jun 2009 23:04:49 -0700

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 that allowed for launchd to detect an application startup.

Is this for distribution, or only for your personal use?

How soon after the original app launches do you need to start the secondary app?

How much control do you have over the original app?

Can you replace the original app's existing executable with another one that triggers your secondary app, then goes on to exec the original executable? The trigger could be many things, including something that launchd monitors (see 'man launchd.plist' for on- demand conditions).

Maybe run a daemon that monitors FSEvents for creation of a temp-file you know the original app will create.

Maybe on-demand monitor the original app's user-defaults, so launchd triggers that way.

Those are just some random ideas. It might help if you described exactly what you're trying to accomplish, including what the original app is. Describe the problem; don't propose a solution. If you've already tried something, tell us what you've tried and exactly why it didn't work. Be specific.

  -- GG

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: per architecture kernel dependencies
  • Next by Date: Help on controlling system volume
  • Previous by thread: per architecture kernel dependencies
  • Next by thread: Help on controlling system volume
  • Index(es):
    • Date
    • Thread