Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 780705
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T20:07:04+00:00 2026-05-14T20:07:04+00:00

What is the programmatical mechanism by which an application can be launched at a

  • 0

What is the programmatical mechanism by which an application can be launched at a result of another one being launched?

E.g. upon launching iTunes, the Last.fm desktop launches too.

Or it is just a question of substituting a “batch file” of some sort?

Note: OS X newbie.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T20:07:05+00:00Added an answer on May 14, 2026 at 8:07 pm

    There’s no standard way to specify a dependent app. So, you need to somehow watch the system. You don’t have to actively poll; you need to use some system mechanism to tell you.

    To watch for a GUI app to launch, you need to write a background app, get the NSWorkspace’s notification center by

    NSNotificationCenter* nc=[[NSWorkspace sharedWorkspace] notificationCenter];
    

    and watch for NSWorkspaceDidLaunchApplicationNotification. See the Apple doc.

    To watch for a non-GUI app to launch, you need to use kqueue. (This is a BSD feature.) See the man page. Typically you have to watch launchd to fork or execve processes. Note that there are multiple launchd processes, one for root and one for each logged-in users.

    In any case you need to start automatically the background app you write. There’re many ways to do that.

    To watch a file or a directory to change, you can use launchd agents. See the man page.

    By the way: the official Last.fm app, on its first launch, installs AudioScrobbler.bundle inside ~/Library/iTunes/iTunes Plug-ins. iTunes reads all the plug-ins when launched, and the plug-in then launches the Last.fm app. It’s a rather hackish, non-condoned usage of the interface, because the plug-in is for the visualizer. See Apple doc.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

There's one mechanism concerning characters encoding which I'm really not familiar with and I'd
My client/server application is using WCF for communication, which has been great. However one
Is there a programmatical way to implement the method isFileMapped which satisfy the following:
I am using Visual Studio, developing a native application, I have a programmatical breakpoint
Windows 7 uses an automatic mechanism to detect whether an application needs elevated administrator
In ASP.NET, an application can be localized using resource files. Resource files hold different
Is there a programatical way in which an In App purchase is refunded back
Is it possible to programmatically enable Desktop Sync for a folder via the Box.com
Spring supports programmatic transaction which give us fine grained control over TX management. According
I am working on an ASP.NET website which uses forms authentication with a custom

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.