Re: how do I find out if an application is active?
Re: how do I find out if an application is active?
- Subject: Re: how do I find out if an application is active?
- From: Andrew Oliver <email@hidden>
- Date: Mon, 24 Mar 2003 15:49:59 -0800
On 3/24/03 3:36 PM, "John Delacour" <email@hidden> wrote:
>
At 2:39 pm -0800 24/3/03, Jennifer Kolar wrote:
>
>
> Simple newbie question-
>
>
>
> I want to have another script that tells that application to quit if it is
>
> actually open..
>
>
set blah to "Safari"
>
tell app "Finder" to set blahRunning to processes whose name is blah
>
if blahRunning is not {} then tell app blah to quit
Except, of course, under Mac OS X, the Finder might not be running and
therefore you should target "System Events" for information on active
processes.
Andrew
:)
_______________________________________________
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.