Title: Re: Question for the script wizards ;)
OK, so after reading the replies from Allen, Paul, and Barry, I came away more confused that before ;) but I think I figured it out. I decided that since I have more than one domain, I preferred a script that simply asked me what address I'd like to use in the return address field.


tell application "Microsoft Entourage"
    activate
    display dialog "Enter the return email address you wish to use:" default answer ""
    set theAddress to the text returned of the result
    if theAddress is not "" then
        set email address of POP account "MISC" to theAddress
        if class of the front window is draft window then
            set theWindow to the front window
            save theWindow
            set theMsg to displayed message of theWindow
        else
            set theMsg to item 1 of (get current messages)
        end if
        set the account of theMsg to POP account "MISC"
    end if
end tell

I found that the above script works fine AS LONG AS after running the script you save/close/reopen it (or save/close/send it). If you run the script and send the message without closing it first (by using Send Now), it modifies the MISC account, but sends from the default account.


P.S. Allen, that whole "offset" thing was over my non-scripter head; would there be any advantage to the alternative method you/Mr. Tea mentioned?

Reply via email to