Title: Re: CC myself option
On 8/28/02 2:17 PM, "Steve Frawley" <[EMAIL PROTECTED]> wrote:

> In perusing the new Mail app, I found an option (in Compose options) to CC
> myself with all messages sent.
>
> I have always wanted to do this in Entourage and usually forget to do it if
> I am sending mail from my account, but from another machine. I use the
> option to save a copy, but hate having to go to several machines to see
> exactly what I said or sent . . .
>
> Is there a way to trick Entourage to do this with a setting so I will have a
> copy of messages sent on my main machine even if the message wasn't sent
> from that machine so I don't have to remember to add myself whenever I am
> mailing from another machine?

Save this script as a Compiled Script in your Script Menu Items, with a name such as

    Add BCC \moB

The bit at the end adds a keyboard shortcut command-option-B. You can also run it from a schedule every 1 minute so it just does it by itself on every message you write:

------------   Add BCC \moB ----------------

tell application "Microsoft Entourage"
    set theWindow to window 1
    if class of theWindow is draft window then
        set theAccount to account of theWindow -- option 1 below [remove]
        set myBCC to email address of theAccount -- set myBCC to "[EMAIL PROTECTED]"
        set bccRecips to (BCC recipients of theWindow)
        if bccRecips does not contain myBCC then
            if bccRecips � "" then set bccRecips to bccRecips & ", "
            set BCC recipients of theWindow to bccRecips & myBCC
            --option 2: enclose in (*  *) if no need to see BCC
            try -- need to prod window to display bcc
                select progress window
                select theWindow
            on error
                open progress window
                select theWindow
                close progress window
            end try  -- to here
        end if
    end if
    
end tell

---------end script----------------------

Here are your options:

1. The 4th line:

    set theAccount to account of theWindow -- option 1 below

means you will BCC it to the same account (email address) you're writing from. If you always want it to BCC to a specific email address of yours, remove that line (or put two hyphens -- at the beginning of the line, which turns it into comment, not active script) and change the next, 5th line, to

    set myBCC to "[EMAIL PROTECTED]"

[Use your real email address, naturally.]

2. As a visual feedback that the BCC has been added, you need to have that section about the progress window. Otherwise you won't see that the BCC has been added - it remains hidden. The PW flashes so momentarily that it's really no bother, But if you don't want it, put the whole section between 'try' and 'end try' between (*  *) like this:

           (* try -- need to prod window to display bcc
                select progress window
                select theWindow
            on error
                open progress window
                select theWindow
                close progress window
            end try  -- to here
            *)

That also turns this section into comments.


Back on your other computer (and on this one too, to keep things orderly) , you can make a rule to put messages from yourself into their own "Sent" folder - either you regular "Sent Items" folder or another one. Or not.

--
Paul Berkowitz

Reply via email to