Save Entourage mails to a text file

Hi,

In Microsoft Entourage, is it possible to save the content of a message to a text file on a local disc.

I have a rule set up to move any mail with a certain Subject, into a specific folder. I would also like to write the content of same message that is moved to a text file.

I have started by just trying to ‘get’ the content of a specific mail.

Searching through the dictionary, nothing seems to work??

Using a script posted on this site I am able to open a message that is unread, but cannot cet the content.

Any help/advice would be much appreciated.

tell application "Microsoft Entourage"
	set theFolders to folders
	repeat with i in theFolders
		if name of i is "FOLDERNAME" then
			set theMsgs to (messages of i whose read status is untouched)
			exit repeat
		end if
	end repeat
	if (count theMsgs) > 0 then
		get content of theMsgs
	end if
end tell

I know this is trying to get content of multiple messages but it does not work with only one message.
fails at get content

This may be of some use to you. I just happened to be working on a similar script!


tell application "Microsoft Entourage"
	set theFolders to folder "FOLDERNAME"
	repeat with i from 1 to count of messages in theFolders
		set theMsg to (message i of theFolders)
		set msgContent to content of theMsg
		tell application "TextEdit"
			-- Place msgContent into the body of a new TextEdit document
			make new document with properties {text:msgContent}
		end tell
	end repeat
end tell

You’ll have to tweak it to suit your exact needs, of course.