Re: Testing for running app?
Re: Testing for running app?
- Subject: Re: Testing for running app?
- From: hciR nellA <email@hidden>
- Date: Tue, 3 Apr 2001 16:21:17 -0800
tell app "Finder" to set appList to name of every process
if appList contains "nameOfApp" then
-- do stuff
end if
--
On Monday, April 2, 2001, at 03:19 PM, T.J. Mahaffey wrote:
Ok, our buddy Danny Goodman has helped me out of some pickles lately,
but I
can't find in the pages of his infinite wisdom how to test for whether
or
not an app is running.
I'd like to do something like this:
if app "Cumulus 5 Client" is running
-- do something neat
else
-- do something else
end if
I know this must be simple, but I'm not getting it.
It's just the wording, I'm guessing, but the correct wording doesn't
seem to
be "running" or "is active".
- hcir
mailto:email@hidden
Made with a Mac!