• 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: Bernardo Hoehl <email@hidden>
  • Date: Tue, 5 Oct 2004 09:37:13 -0300

I had the same problem with a Demo I built.

I tried to check if the users box had Filemaker installed, and as a result it opened a "where is filemaker" dialog.

I think what launches the application is the "tell application to quit" statement.

I fixd the problem by simply making another script (saved as app) with the "tell application to quit" statement.

Like this:

If process_flag then

do shell script "open /path/folder/nameofscript.app" --- script with your tell application to quit statement

end if


Hope this helps.


Bernardo Höhl

Rio de Janeiro - Brazil

++++++++++++++++++++++++
On 5 Oct, 2004, at 9:12 AM, Bill Planey wrote:

Hello,

I have a script that checks if an application is running, then quits it if
it finds that it _is_ running. The problem is - the mere fact that
applescript checks for this application process is enough to launch it (and
then, of course, the script quits it). Just the act of checking seems to be
enough to launch it if it isn't running at the time?


Here is the code:

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?

Thanks,

Bill Planey



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden


This email sent to email@hidden


_______________________________________________ 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: Spellcheck a list
  • Next by Date: Quark 6 Doc File Path = Temporary Items?
  • Previous by thread: 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