• 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: how do I find out if an application is active?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: how do I find out if an application is active?
      • From: John Delacour <email@hidden>
References: 
 >Re: how do I find out if an application is active? (From: John Delacour <email@hidden>)

  • Prev by Date: Re: how do I find out if an application is active?
  • Next by Date: Re: Trouble Editing The Contextual Menu Scripts
  • Previous by thread: Re: how do I find out if an application is active?
  • Next by thread: Re: how do I find out if an application is active?
  • Index(es):
    • Date
    • Thread