• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Quote-character in Apple Mail
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Quote-character in Apple Mail (From: Yasushi Shimogaisyo <email@hidden>)

  • Prev by Date: Making bookmarks for Safari
  • Next by Date: Shell Script Timeout?
  • Previous by thread: Quote-character in Apple Mail
  • Next by thread: Re: Quote-character in Apple Mail
  • Index(es):
    • Date
    • Thread