Re: Quote-character in Apple Mail
Re: Quote-character in Apple Mail
- Subject: Re: Quote-character in Apple Mail
- From: Michelle Steiner <email@hidden>
- Date: Sat, 21 Feb 2004 10:39:39 -0700
On Feb 21, 2004, at 5:10 AM, Yasushi Shimogaisyo wrote:
However, theContent variable had no quote-character (|) of a response
message in it.
It's hard to figure out message content without any quote-charater.
Is it posibble to get a string which contains any quote-character in a
message?
To get the quote character of a message, you have to use source rather
than content, but that returns the entire message, including headers,
as one block of text.
This will extract the content from the source:
tell application "Mail"
set TheMail to the selection
set TheMail to item 1 of TheMail
set the last_header to (content of header -1 of TheMail)
set the entire_contents to source of TheMail
set {tid, AppleScript's text item delimiters} to {AppleScript's text
item delimiters, last_header}
set myContent to text item 2 of the entire_contents
set AppleScript's text item delimiters to tid
myContent
end tell
--
If you're not going somewhere, you're not getting anywhere.
_______________________________________________
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.