Re: Getting running status of an application
Re: Getting running status of an application
- Subject: Re: Getting running status of an application
- From: Ric Phillips <email@hidden>
- Date: Fri, 31 Aug 2001 10:39:01 +1000
On 31/8/01 9:29 AM, "Phillip Hall" <email@hidden> wrote:
>
Hi,
>
>
I need to know if an application is running before doing a Tell block which
>
quits the application.
>
>
Is there a way to find the running status of an application?
>
Run the app, load the script editor, and then execute,
Tell app "finder"
Name of every process
End tell
Then check the result window which will display a list with the name of the
running processes. Your application should be in the list. You can then use
its name in the following manner,
tell application "finder"
if process "<name of process>" exists then
quit "<name of app>"
end if
end tell
Remember the name of a process may not always be identical to the name of an
application.
Cheers,
Ric Phillips
Computer Laboratory Support Officer
Faculty of Humanities and Social Sciences
La Trobe University
9479 2792