• 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: 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.
References: 
 >Re: how do I get the names of other runnings apps and start/stop one? (From: David Remahl <email@hidden>)

  • Prev by Date: Re: Is this a bug of URLHandle or just a documentation omission?
  • Next by Date: Re: [ANN] vcard 0.1 alpha
  • Previous by thread: Re: how do I get the names of other runnings apps and start/stop one?
  • Next by thread: Re: how do I get the names of other runnings apps and start/stop one?
  • Index(es):
    • Date
    • Thread