• 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: Thu, 4 Jun 2009 09:51:04 -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

_______________________________________________

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


  • Follow-Ups:
    • Re: launchd detecting when an application is running
      • From: Tom Hohensee <email@hidden>
  • Prev by Date: Re: Help with SHA class
  • Next by Date: Re: Touchscreens and control scaling
  • Previous by thread: Re: launchd detecting when an application is running
  • Next by thread: Re: launchd detecting when an application is running
  • Index(es):
    • Date
    • Thread