• 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: Processes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Processes


  • Subject: Re: Processes
  • From: Sam Goldman <email@hidden>
  • Date: Mon, 21 Jan 2002 06:39:33 -0800

On 1/21/02 6:25 AM, "Alex Keresztes" <email@hidden> wrote:

> I have two questions:
>
> 1. Does anyone know how to check if a specific application is running,
> from cocoa or carbon?
>
> 2. How can I send that application a quit message once I have discovered
> if it is running?

There is probably a way in Obj-C to do this (ApplicationServices maybe?)

With applescript you can do this:

tell application 'Application Name'
quit
end tell

I don't think that would cause any problems if that application wasn't open
because it just wouldn't get the command.

Check /Developer/Examples/AppleScript Studio for examples.

- Sam


References: 
 >Processes (From: Alex Keresztes <email@hidden>)

  • Prev by Date: Re: Output from NSTask and modal window
  • Next by Date: copy & paste between Carbon and Cocoa
  • Previous by thread: Processes
  • Next by thread: Re: Processes
  • Index(es):
    • Date
    • Thread