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,

First reports on MacScrpt, from people using AS 1.4.3 (OS 9.0.4) and AS 1.1
(OS 7.5.5) show that 'running' just compiles as an undefined variable and
errors as such when run, even in a Finder tell block.

On the other hand, there are two Scripting Additions: "Is Application
Running 1.0.0" and "RunningApps 1.0", which have the term 'running'? Do/did
you have one of those installed?

Now I'm beginning to suspect that 'running' is a new term in the Finder for
AS 1.6, and is actually there for the new Script Runner in OS X, where it
will have a different meaning. It will supercede any osax within a Finder
block. If you do have an osax that uses 'running' it should still work
_outside_ a Finder block. You don't need the Finder for osaxen. Try it:

    if application "Microsoft Entourage" is running then
          set x to true
      else
          set x to false
      end if

What do you get now?
-- 
Paul Berkowitz


-- 
To unsubscribe:               <mailto:[EMAIL PROTECTED]>
To search the archives: 
          <http://www.mail-archive.com/entourage-talk%40lists.boingo.com/>

Reply via email to