On 4/5/01 2:13 AM, "Lisa Thompson" <[EMAIL PROTECTED]> wrote:
> This is not an Entourage scripting question, but I hope someone here can
> help.
>
> The following script, which always worked accurately before, no longer works
> after I upgraded to AS 1.6. By no longer works, I mean x ends up as FALSE
> even when Entourage IS running.
>
> tell application "Finder"
> if application "Microsoft Entourage" is running then
> set x to true
> else
> set x to false
> end if
> end tell
>
> The same thing happens no matter what running application I refer to in the
> second line. Anybody know what's going on?
>
Lisa,
I'm afraid I'm just going to be showing my ignorance, but in two years of
scripting and participating in several scripting mailing lists, I have never
come across any Finder property "running". I have no idea what that is, nor
how it ever worked for you.
I've just checked, and it _is_ a Finder keyword that compiles, which just
errors as an undefined variable when taken out of a Finder tell block, so I
imagine that it must be a deprecated term that maybe goes back to system 6
or early 7 and has finally lost its validity. I'll ask on MacScrpt, where
the oldtimers hang out, and will report back to you. In the meantime, what
you want is:
tell application "Finder"
if name of every process contains {"Microsoft Entourage"} then
set x to true
else
set x to false
end if
end tell
-- true
--
Paul Berkowitz
--
To unsubscribe: <mailto:[EMAIL PROTECTED]>
To search the archives:
<http://www.mail-archive.com/entourage-talk%40lists.boingo.com/>