Re: Return or No Return
Re: Return or No Return
- Subject: Re: Return or No Return
- From: Paul Berkowitz <email@hidden>
- Date: Thu, 23 Mar 2006 15:55:20 -0800
- Thread-topic: Return or No Return
On 3/23/06 3:48 PM, "Luther Fuller" <email@hidden> wrote:
> One solution might be to read the whole file into a variable, then
> compare the offsets of return and linefeed.
> But is this guaranteed to work - always?
There's no need to do that. As I said earlier, read the whole file into a
variable. Then set another variable to 'paragraphs of thatVariable'. That
will get the lines no matter whether the line ends are carriage returns
(ASCII 13) or line feeds (ASCII 10). You don't even need to know which they
are. Then loop through the paragraphs.
--
Paul Berkowitz
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden