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: Ondra Cada <email@hidden>
- Date: Wed, 16 Oct 2002 16:38:22 +0200
On Wednesday, October 16, 2002, at 04:14 , David Remahl wrote:
Perhaps you can write your code an compile it in an applescript, and
then
run it using NSAppleScript, and get rid of NSWorkspace all together.
Why should you, on earth? NSWorkspace, being a very hi-level API, is
preferred to AppleScript any time -- you should go AppleScript only in
case NSWorkspace does not offer the service you need.
But it doesn't allow quitting applications. So if you still are going to
run
a compiled script, you might as well let the script check wether the
application is running. It saves some code, and I got the impression that
the original poster already had an AppleScript method ready.
It would be better to add a category to NSWorkspace to encapsulate the
AppleScript code and to keep the API used in the main codebase straight.
---
Ondra Cada
OCSoftware: email@hidden
http://www.ocs.cz
private email@hidden
http://www.ocs.cz/oc
_______________________________________________
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.