• 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: Return or No Return
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: Return or No Return (From: Luther Fuller <email@hidden>)

  • Prev by Date: Re: Return or No Return
  • Next by Date: Re: Replace slash by underscroe in file name
  • Previous by thread: Re: Return or No Return
  • Next by thread: Re: Return or No Return
  • Index(es):
    • Date
    • Thread