Re: Some line breaks aren't showing up when I try and make a list of paragraphs of email contents
Re: Some line breaks aren't showing up when I try and make a list of paragraphs of email contents
- Subject: Re: Some line breaks aren't showing up when I try and make a list of paragraphs of email contents
- From: Shane Stanley <email@hidden>
- Date: Wed, 26 Mar 2014 14:13:53 +1100
On 26 Mar 2014, at 1:39 pm, Alastair Leith <email@hidden> wrote:
Here is an example of the pasteText variable I was able to copy out of the Script Debugger Variables tab to show how I'm missing many of the line breaks that seem to appear when you look at the variables in their own window. I just tried using your form and code, and it works fine. I wonder whether you are doing your test by copying the contents from the email, rather than getting its contents via script. If the former, I suspect what you are seeing is an artefact of copying email html, where the lines are probably separated by <br>.
set pasteText to (paragraphs from paragraph n to the last paragraph) of theText -- not splitting paras at soft line breaks
Ouch. Easier:
set pasteText to paragraphs n through -1 of theText
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden