MACSCRPT Archives

June 2009

MACSCRPT@LISTSERV.DARTMOUTH.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Stan Cleveland <[log in to unmask]>
Reply To:
Macintosh Scripting Systems <[log in to unmask]>
Date:
Tue, 2 Jun 2009 08:27:45 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (38 lines)
On 6/2/09 12:15 AM, "Sovereign Diamonds" wrote:

> I'm trying to change the sender's address from my Entourage's default
> Address to that of a separate account.
> 
> I've tried this:
> set strRecipientAddr to "[log in to unmask]"
> set strSenderAddr to "[log in to unmask]"
> set strRecipientName to "DMM"
> set subjectvar to "File has been sent"
> tell application "Microsoft Entourage"
>   set composeMessage to (a reference to (make new outgoing message ¬
>   with properties {sender:strSenderAddr,
> recipient:{address:strRecipientAddr, display name:strRecipientName, ¬
>   recipient type:to recipient}, subject:subjectvar}))
>  send composeMessage
> end tell
> 
> But it continues to send from the default address of
> [log in to unmask] How can I change the default address?
> 
> Any advise would be appreciated?

David, try setting 'account' rather than 'sender' in the new message using
the appropriate account type ('Exchange account', 'Hotmail account', 'IMAP
account', 'POP account' or 'other user account') and whatever name you've
given the account, like this:

tell application "Microsoft Entourage"
   set composeMessage to (a reference to (make new outgoing message ¬
     with properties {account:POP account "Mysite.com Account", recipient:¬
     {address:strRecipientAddr, display name:strRecipientName ¬
       , recipient type:to recipient}, subject:subjectvar}))
end tell

HTH,
Stan C.

ATOM RSS1 RSS2