• 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: No way to tell if an application is running without launching it?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >No way to tell if an application is running without launching it? (From: Bill Planey <email@hidden>)

  • Prev by Date: Re: Quark 6 Doc File Path = Temporary Items?
  • Next by Date: Re: Quark 6 Doc File Path = Temporary Items?
  • Previous by thread: Re: No way to tell if an application is running without launching it?
  • Next by thread: Re: No way to tell if an application is running without launching it?
  • Index(es):
    • Date
    • Thread