Re: Testing if another app is running
Re: Testing if another app is running
- Subject: Re: Testing if another app is running
- From: Michael Grant <email@hidden>
- Date: Sat, 08 Feb 2003 20:24:03 -0600
On 2/8/03 8:08 PM, "Jeffrey Mattox" <email@hidden> wrote:
>
I want to quit another application, as in:
>
>
tell application "AnotherApp" to quit
>
>
But first I need to determine if the other application is running.
>
If it's not, then that line launches it before quitting it.
>
>
if ( "AnotherApp" is running ) then -- how to do this?
>
tell application "AnotherApp" to quit
>
end if
>
>
There must be an easy way...
tell application "Finder" to name of processes
if "AnotherApp" is in the result then tell application "AnotherApp" to quit
Michael
--
The future will be better tomorrow.
- George W. Bush
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.