• 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: Getting running status of an application
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Getting running status of an application
      • From: "Bob.Kalbaugh" <email@hidden>
References: 
 >Getting running status of an application (From: Phillip Hall <email@hidden>)

  • Prev by Date: Re: coercing a list
  • Next by Date: Re: New user
  • Previous by thread: Re: Getting running status of an application
  • Next by thread: Re: Getting running status of an application
  • Index(es):
    • Date
    • Thread