Outlook Express anf Filemaker Pro Script Help
Outlook Express anf Filemaker Pro Script Help
- Subject: Outlook Express anf Filemaker Pro Script Help
- From: "Keith Dykes" <email@hidden>
- Date: Mon, 17 Jun 2002 12:40:45 -0700
I have an AS that uses a Filemaker Pro database to create a
broadcast-only mailing list in Outlook Express as follows:
on run
tell application "Filemaker Pro"
tell document "Incoming Mail" -- open database document
named Incoming Mail
repeat with i from 1 to number of every record
set mySenderName to cell "sender name" of record i
set mySenderAddress to cell "sender address" of record i
my processMail(mySenderName, mySenderAddress)
end repeat
end tell
end run
on processMail(mySenderName, meSenderAddress)
tell application "Outlook Express"
set mySubject to "Mailing List Announcement"
set myBody to "The new message text goes here!"
make new outgoing message with properties
{subject:mySubject, content:myBody,
recipient:{{address:{display name:mysenderName,
address:mySenderAddress}, recipient type:to recipient,
delivery status:unsent}}}
end tell
end processMail
I would like to make a couple of enhancements to this
script. First, I would like to change the created message
to an HTML format instead of the plain text format. I know
I can set this attribute in the outgoing message
properties, but I am not sure the proper format? Second, I
would like to be able to chose a text file for the myBody
parameter instead of having to type the message text in the
script every time. Can anbody help with these two
modifications? Any and all assistance is greatly
appreciated!
Keith
_______________________________________________
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.