Title: Re: Folder List Annoyance
This from Mr Tea - dated 3/5/02 02.11 am:

> Why is the folder list panel so gormless?

I hadn't realised this was such an issue. Here's my startup script, adapt it how ye may.

It starts by selecting the inbox to bring all the folders into view, then goes to the first folder it finds that has unread messages. All my list subscriptions are directed to subfolders of a ‘lists’ folder, that bit is commented out, but I left it in to demonstrate the syntax for AS ingenues.

tell application "Microsoft Entourage"
    try
        set displayed feature of window "Mail" to folder "Inbox"
        set mBoxes to (every folder whose ID = 1 or ID > 5) --& (folders of folder "Lists")
        repeat with mBox in mBoxes
            if unread message count of mBox > 0 then
                set displayed feature of window "Mail" to mBox
                exit repeat
            end if
        end repeat
    end try
end tell

HTH


Mr Tea
--

Reply via email to