Most of my recent AppleScripting efforts (and posts here) have been revolved
around inserting the reply above the quoted text, not under it. Doing a
Google search for similar AppleScripts for reference, I came across Paul
Berkowitz's iDisk site and downloaded "Reply Insertion Reversed X"
AppleScripts. This pretty much did what I was trying to, only much more
elegantly.

I also extended it to simplify another hassle I frequently encountered. I
have two email addresses that redirect to my main address, and when I reply
I need to manually switch to an account and signature I made to go with each
of those addresses. To automate this, I extended Paul's script thusly:

===

    set acct1 to false
    set acct2 to false
    
    set n to count of recipients of theMsg
    if n > 0 then
        repeat with i from 1 to n
            set a to address of address of recipient i of theMsg
            if a is "[EMAIL PROTECTED]" then
                set acct1 to true
            else if a is "[EMAIL PROTECTED]" then
                set acct2 to true
            end if
        end repeat
    end if
    
    if acct1 then
        set account of window 1 to POP account "account 1"
        set other signature choice of window 1 to signature "signature 1"
    else if acct2 then
        set account of window 1 to POP account "account 2"
        set other signature choice of window 1 to signature "signature 2"
    end if

===

Of course, you'll need to substitute the correct names of your accounts and
signatures and your address(es). This may be a clumsy way to do it, but it
works!

Rick Johnson


-- 
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