how do I get the names of other runnings apps and start/stop one?
how do I get the names of other runnings apps and start/stop one?
- Subject: how do I get the names of other runnings apps and start/stop one?
- From: "Donald S. Hall" <email@hidden>
- Date: Wed, 16 Oct 2002 00:21:11 -0600
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.