• 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: Soft returns in string variable?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Soft returns in string variable?


  • Subject: Re: Soft returns in string variable?
  • From: dave dowling <email@hidden>
  • Date: Wed, 4 Feb 2004 22:22:34 -0500

Walter,

Your guess was correct. Stripping out ASCII character 10 did the trick. I had to modify what you sent slightly to replace the CRLFs with Mac returns, but your suggestion was on the money. I didn't see anything in Mail's dictionary that would do the job, so I'm going with this approach -- it works, and it's fast enough.

Nice job, and thanks for the assistance! :-)

On Feb 4, 2004, at 12:58 PM, Walter Ian Kaye wrote:

see if this helps:

set myParseText to (content of myMsg)
set oldDelims to applescript's text item delimiters
set applescript's text item delimiters to ascii character 10
try
set myParseList to every text item of myParseText
set myParseText to myParseList as string
end try
set applescript's text item delimiters to oldDelims

Thanks.
Dave Dowling
http://www.davedowling.com

Free at last! How I found peace with God: http://www.davedowling.com/peace.htm
_______________________________________________
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: 
 >Soft returns in string variable? (From: dave dowling <email@hidden>)
 >Re: Soft returns in string variable? (From: Walter Ian Kaye <email@hidden>)

  • Prev by Date: Re: Very basic "write to file" query
  • Next by Date: Re: Very basic "write to file" query
  • Previous by thread: Re: Soft returns in string variable?
  • Next by thread: Re: Soft returns in string variable?
  • Index(es):
    • Date
    • Thread