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