Save as text script

M

Mcarthur, Cindy

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.

I'm using Entourage X on Panther.

Thanks in advance.
Cindy
 
D

Diane Ross

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.

Are you trying to archive messages or save bit of info from threads? Perhaps
if you explained in more detail we could make a suggestion.

I save clips from emails with a note application, DEVONthink. There are
several note apps out there as well as applications like CopyPaste for
storing and clipping text.
 
A

Allen Watson

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".
 
M

Mcarthur, Cindy

Hi Allen,

I didn't know you were a contributor here. What I really wanted was your
Many to BBedit script but couldn't find it on your Earthlink web site. I
found it on your mac.com site today - thanks for posting the URL here.

Ideally, I'd like the emails to be saved to a file, but since I'm eventually
opening it in BBedit anyway, I'll just get used to having it open
automatically in that application. And I was able to remove the Courier
formatting in your script.

Thanks for your suggestion of dragging the folder of emails to the desktop.
I tried this but the text file included too much garbage.

Thanks for writing great useful AppleScripts!

Cindy
 
M

Mcarthur, Cindy

Allen,

After posting my thank you message, I checked your many Entourage scripts
and tried Many to TextEdit file(v1.0.1). Does EXACTLY what I want!
Thanks again.

Cindy
 
Top