• 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: Try to quit
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Try to quit


  • Subject: Re: Try to quit
  • From: Guy Algot <email@hidden>
  • Date: Mon, 11 Dec 2000 13:17:40 -0700

Try this. This will work regardless of what the app 'Fetch' has been
named...

tell application "Finder" to set processList to processes whose creator
type is "FTCh"
if items in processList is not 0 then
set appName to processList as text
tell application appName to quit
end if

On 12/11/00 9:12 AM, email@hidden sent:

>Hi
>When I try to quit an application with applescript and the app is not
>running it is launched by the script.
>I thought theese simple lines should do what I want: that is quitting an
>application just in case it is running.
>
>tell application "Finder"
>activate
>try
>quit application "Fetch 3.0.3"
>end try
>end tell


*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
Guy Algot, Graphic Dimensions Consulting Calgary, Alberta
"The higher, the fewer!" Mac consulting/4D development
=---------------------------------------------------------------=
"Microsoft is a cross between the Borg and the Ferengi. Unfortunately,
they use Borg to do their marketing and Ferengi to do their programming."
-- Simon Slavin


  • Prev by Date: Apple System Profiler
  • Next by Date: Re: Pathnames derived from variables
  • Previous by thread: Re: Try to quit
  • Next by thread: this message sent over ten times
  • Index(es):
    • Date
    • Thread