Re: Try to quit
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.
;