Re: Entourage E-mail - HTML Question
Re: Entourage E-mail - HTML Question
- Subject: Re: Entourage E-mail - HTML Question
- From: Paul Berkowitz <email@hidden>
- Date: Mon, 13 Sep 2004 14:26:33 -0700
The way to do this is NOT to duplicate the content - which is always plain
text - but to duplicate the _source_ of the saved message. The source will
include the subject, and everything else. You're right to specify the
account if it's different from the default account.
I would also advise you to refer to the _last_ message, not the first
message, in the Outbox, in case you already have others there. You also
might as well avail yourself of the default of recipient type and use just
the address, and the fact that a single address can be used as 'recipient'
without even specifying the 'address' part of the recipient record. You can
use either the simple "email@hidden" or the "Display Name
<email@hidden>" format for any of these.
Note that although including 'time sent' will use the current date for the
saved draft message, it's hardly necessary since as soon as you send the
message the 'time sent' property of the sent message will change to the
actual sent time.
tell application "Microsoft Entourage"
set message_source to source of message -1 of folder "Outbox"
make new outgoing message at the out box folder with properties¬
{time sent:current date, source:message_source,
recipient:message_to, account:POP account 12}
end tell
--
Paul Berkowitz
> From: Jacki Barineau <email@hidden>
> Date: Fri, 10 Sep 2004 17:26:23 -0400
> To: <email@hidden>
> Subject: Re: Entourage E-mail - HTML Question
>
> Hi, Everyone - I hate to ask again, but so far I've not gotten any help with
> this problem! Someone suggested I use Word's mail merge to e-mail function
> but I can't find that on my version of Word (OS X for Mac)...
>
> Is there some simple parameter I could tell Entourage to set to keep the
> html format when creating all the new messages it's going to send out? The
> original one is in html format but the ones created from the script keeps
> losing the html formatting...
>
> Or is there another way of doing what I'm trying to do?!
>
> Thanks so much for any help/suggestions...
>
> - Jacki
>
> on 9/8/04 11:52 PM, Jacki Barineau wrote:
>
>> on 9/8/04 11:03 PM, Paul Berkowitz wrote:
>>
>>> On 9/8/04 6:04 PM, "John C. Welch" <email@hidden> wrote:
>>>
>>>> On 9/8/04 7:34 PM, "Jacki Barineau" <email@hidden> wrote:
>>>>
>>>>> I9m trying to send out an e-mail message using a script I wrote but it
>>>>> won9t
>>>>> keep its html formatting for some reason. Is there some kind of command I
>>>>> need to set for it to do this? I can send the script if that would
>>>>> help...
>>>>
>>>> Which of the three versions of E'rage are you using?
>>>
>>> And what's the script?
>>
>> Okay, I'm sorry I forgot to include all the info! Thanks for the
>> responses... I'm using Entourage X for Macintosh (10.1.4) which is part of
>> Office X. The script is taking selected e-mail addresses from a huge
>> Filemaker Pro database (over 25,000 records) and then plugging those e-mail
>> addresses into the To field of a "new message" and leaving it queued in my
>> Outbox. The contents of the "new message" are being taken from a queued
>> message I have sitting in the Outbox already. That message is in html
>> format - however, the one I get through the script leaves off the html
>> formatting and isn't showing my graphics.
>>
>> Here is the script itself (it's short):
>>
>> tell application "FileMaker Pro"
>> open "Macintosh HD:Users:jacki:Documents:OO Web Site:Mailing List -
>> OO:Mailing List - OO"
>> set record_count to count records of document "Mailing List - OO"
>> repeat with i from 1 to record_count
>> go to record i
>> set message_to to cellValue of cell "EMAIL" of record i
>> tell application "Microsoft Entourage"
>> set message_body to content of message 1 of folder "Outbox"
>> set message_subject to subject of message 1 of folder "Outbox"
>> make new outgoing message at the out box folder with properties
>> ,
>> {subject:message_subject, time sent:current date,
>> content:message_body, recipient:{recipient type:to recipient,
>> address:message_to}, account:POP account 12}
>> end tell
>> end repeat
>> display dialog "Messages Sent: " & i
>> end tell
>> _______________________________________________
>> applescript-users mailing list | email@hidden
>> Help/Unsubscribe/Archives:
>> http://www.lists.apple.com/mailman/listinfo/applescript-users
>> Do not post admin requests to the list. They will be ignored.
> _______________________________________________
> applescript-users mailing list | email@hidden
> Help/Unsubscribe/Archives:
> http://www.lists.apple.com/mailman/listinfo/applescript-users
> Do not post admin requests to the list. They will be ignored.
>
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden