Your question was discussed fully on this list. What do you mean "no
takers"? Lots of takers, but no solution.

It can't be done. It's a limitation of Entourage's scripting. I attempted
all sorts of workarounds, but none of them work so I didn't send them in.
'open' in Entourage scripting brings to the front (of the Entourage layer).
If Entourage itself is in the background it should stay there and not
interrupt you working in some other app. But if you're working in Entourage
itself - typing a message or whatever - having a script run automatically to
open other folders into their own windows will bring those windows to the
front. It can't even restore the original window to the front by 'index' as
Barry was hoping. I suppose you could begin the script by

    tell app "Microsoft Entourage"
        set frontWindow to window 1

        -- do your stuff opening windows


        select frontWindow
    end tell

and end with bringing the original window back to the front again. That's
still quite disruptive.

So think laterally. Come up with some other way for checking for new mail.
Opening windows is too disruptive to current work you're doing. Most people
find that just perusing the folders with bolded Unread counts does the
trick. Or you can make an "Unread Messages" custom view with these criteria:

Item Type : � Messages
Folders : All Folders   [ UNCHECK "Include Deleted Items"]
Match:          <if ALL criteria are met>
    <Status>    <Is>    <Unread>
    <Specific Header>   <Newsgroups>    <Does not exist>

Personally I would also add:

    <Is not junk mail>


Then go to this custom view to check messages. You can double-click the
messages, or just read them in the Preview Pane, from there. You can sort
the view by Sent or by Folder or by whatever you want. It beats opening a
gaggle of windows by a very long way.



     

-- 
Paul Berkowitz
MVP Entourage
Entourage FAQ Page: <http://www.entourage.mvps.org/toc.html>
AppleScripts for Entourage: <http://macscripter.net/scriptbuilders/>

PLEASE always state which version of Entourage you are using - 2001 or X.
It's often impossible to answer your questions otherwise.


-- 
Paul Berkowitz
MVP Entourage
Entourage FAQ Page: <http://www.entourage.mvps.org/toc.html>
AppleScripts for Entourage: <http://macscripter.net/scriptbuilders/>

PLEASE always state which version of Entourage you are using - 2001 or X.
It's often impossible to answer your questions otherwise.


> From: David Morganstein <[EMAIL PROTECTED]>
> Reply-To: "Entourage:mac Talk" <[EMAIL PROTECTED]>
> Date: Wed, 05 May 2004 06:53:24 -0400
> To: "Entourage:mac Talk" <[EMAIL PROTECTED]>
> Subject: Re: Window scripting question - open folder behind currently opened
> windows
> 
> May I pose my question again, as there were no takers the first round...I
> know how to use AppleScript to open a folder (when mail arrives and it's
> sorted into a folder).  However, it opens in front of everything else,
> including other application windows that may have had focus at the time.
> 
> How can I open the folder window behind all other windows and not move focus
> to EntX if it doesn't currently have it?
> 
>> I have the opposite question.  I have scripts that move various newly
>> arrived email into folders by the source of the email (eg and Entourage:mac
>> Talk folder) and then open those folders to tell me that new mail of that
>> type has arrived.
>> 
>> These windows open 'in front' of all other windows, which keeps me from
>> using the computer till all the mail has opened!  How can I open them
>> 'behind' all open windows (or some layer other than the topmost)?
> 
>>>>   I'm writing a little script for Entourage, and its aim is to find a
>>>> particular window and bring it to the front.  I can find the window.  How
>>>> would I bring it to the front?
>>> 
>>>   select myWindow
>>> 
>>> is the way to do it.
> 
> --
> David Morganstein
> [EMAIL PROTECTED]
> 
> -- 
> To unsubscribe:  
> <mailto:[EMAIL PROTECTED]>
> archives:       
> <http://www.mail-archive.com/entourage-talk%40lists.letterrip.com/>
> old-archive:     
> <http://www.mail-archive.com/entourage-talk%40lists.boingo.com/>
> 
> 


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

Reply via email to