Re: how do I get the names of other runnings apps and start/stop one?
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.