Re: Processes
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>) |