Re: No way to tell if an application is running without launching it?
Re: No way to tell if an application is running without launching it?
- Subject: Re: No way to tell if an application is running without launching it?
- From: Emmanuel <email@hidden>
- Date: Tue, 5 Oct 2004 15:08:02 +0200
At 7:12 AM -0500 05/10/04, Bill Planey wrote:
tell application "System Events"
try
set the process_flag to (exists process "Distiller")
end try
end tell
if process_flag then
tell application "Acrobat Distiller 6.0.2" to quit
end if
... Could the Try statement be causing this?
If the "tried" line was failing, "process_flag" would not be defined
and you would get an (other) error.
I am not a specialist, but I would try to check whether the app's
process name is in "name of every process" rather. This will not
launch it, for sure.
Emmanuel
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden