Re: Getting texr from Mail.App
Re: Getting texr from Mail.App
- Subject: Re: Getting texr from Mail.App
- From: Philip Aker <email@hidden>
- Date: Thu, 09 May 2002 18:48:02 -0700
On Tuesday, May 7, 2002, at 02:32 PM, giuseppe raucci wrote:
I have some serious problems in taking the text from the
messages received with Mail.App: it very often gets anomalous
truncations that keep from using an automated AppleScript
-based handling of the message contents.
I found that after saving the message and opening it with
Style, I can handle the text very comfortably, without loosing
any piece of text; also, at that point I can save the message
in text format. open it with BBEdit and at that point
manipulate the message text in any way I want.
Is the problem the text format (rtf) used in Mail? Is there a
more direct way to handle text from Mail.app?
I don't know the answer to your question but would appreciate it
very much if one of the Apple Fellows on this list would give a
nudge to a 'Mail' developer to show us some example AppleScripts
which cover this area.
What I want to do is:
* Have an AppleScript which grabs _The Selection_ as plain text
from a message into a variable.
* Prepends a return, a delimiter string (i.e. "***") and two
more returns to the variable.
* Appends the variable to a file whose name is determined by the
name of the mailbox the message is in, and whose folder location
is hard-wired into the script.
Then I will take it upon myself to find a means (maybe with
Youpi Key) to bind the above mentioned script to some hot key
combination. I've made several attempt to come up with the right
script for the above, but similar to your observations, keep
running into weirdness.
I've checked quite a few of the Jaguar announcements. There was
no mention of improvements in Mail scripting. :-/
Philip Aker
http://www.aker.ca
_______________________________________________
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.