Mcarthur said:
I'm trying to find an AppleScript which saves multiple mail messages into
one text file. I don't need or want the messages formatted or changed in any
way.
All I could find is Allen Watson's script, "Entourage Many to Word" but it
does a bit too much (formatting, opening in Word).
"Save as" only works with one message at a time.
Couple suggestions:
1. My Entourage Many to Word script can be easily modified to not mess
with the message formatting. If the message is in HTML, no script can
easily retain the formatting (you'd need a browser to read it anyway),
so HTML gets changed to plain text, but other than that:
At the top of the script (opened in Script Editor) make sure the
rewrapping property is set to false, like this:
property rewrapping : false
If you do not like having the message font displayed in 10-point Courier
and prefer your own default font and point size, near the bottom, delete
these lines from within the quotation marks of the Visual Basic macro:
With activedocument
..Content.Font.Name = \"Courier\"
..Content.Font.Size = 10
End With
The macro should now read just this:
do Visual Basic ("ActiveDocument.Content.paste")
Be sure to get the latest version from my iDisk folder at
<
http://homepage.mac.com/allen_a_watson/FileSharing3.html>
Look in /Scripts/Enrourage v X for EntourageManytoWordv1.3.sit
2. If you really don't want anything at all stripped out of the
messages, try simply selecting a folder full of messages and dragging
the folder to your Desktop. It creates a "mailbox" file, which is simply
a text file in a particular standard format for mail. You can read it in
a text editor, Word, or in several different mail programs. If you need
to copy just some of the messages in a folder, you will have to move
them to a temporary folder first, then move them back, which isn't a big
deal.
I have another script that will archive selected folders to mailbox
files. It actually moves the messages to a temporary folder, saves the
folder to the Desktop, and then moves all the messages back where they
came from. You can set it to archive only messages older than a certain
number of days, if you like, and to delete the messages after they have
been archived. It works really fast. I've not posted this script
previously because I didn't want to be bothered with questions about
enhancements, but if you want it, you can find it on the same iDisk
under the name "Archive Folders".