• 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: how do I get the names of other runnings apps and start/stop one?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how do I get the names of other runnings apps and start/stop one?


  • Subject: Re: how do I get the names of other runnings apps and start/stop one?
  • From: Nathan Day <email@hidden>
  • Date: Thu, 17 Oct 2002 17:39:51 +0930

Try this
http://homepage.mac.com/nathan_day/pages/source.html#NDProcess

On Wednesday, October 16, 2002, at 03:51 PM, Donald S. Hall wrote:

I want my Cocoa application to be able to control the running of another
application (which is a Carbon application). Specifically, I need to be able
to do the following:

1. Determine if the other app is currently running.

2. Launch or kill the other app.

In Applescript, both tasks are trivial. What do I do in my Cocoa app?

I have been looking through the documentation and have found that I can use
NSWorkspace to launch the application, but I can't figure out how to
determine if it is already running (in other words get a list of running
applications and see if it is in the list), or how to stop it via my first
program.

I want this to be able to work in both 10.1 and 10.2.

Any suggestions or pointers would be greatly appreciated.

Thanks,

Don
--
Donald S. Hall, Ph.D.
Apps & More Software Design, Inc.
http://www.theboss.net/appsmore
email@hidden
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

Nathan Day
http://homepage.mac.com/nathan_day/
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >how do I get the names of other runnings apps and start/stop one? (From: "Donald S. Hall" <email@hidden>)

  • Prev by Date: Re: Looping Sounds in Screensaver
  • Next by Date: Re: Cocoa and PortAudio
  • Previous by thread: Re: how do I get the names of other runnings apps and start/stop one?
  • Next by thread: Subclassing NSDocumentController
  • Index(es):
    • Date
    • Thread