• 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: SemiColon <email@hidden>
  • Date: Mon, 11 Dec 2000 08:25:20 -0800

At 1:44 PM +0100 12/11/00, email@hidden wrote:
>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"
set procList to creator type of every process
set isItRunning to (procList contains <<class BOBO>>) --is Claris/AppleWorks running? - (true/false)
if not isItRunning then
return
else
tell application "AppleWorks" to quit
end if
end tell

--the above script contains "<<" and ">>", they represent chevrons
--(ASCII characters 199 and 200) and must be replaced with those
--characters in order for the script to work.

;


  • Prev by Date: Re: How to hide an application?
  • Next by Date: Re: Apple System Profiler
  • Previous by thread: Re: Try to quit
  • Next by thread: Re: Try to quit
  • Index(es):
    • Date
    • Thread