• 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: Move files to the right folder.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Move files to the right folder.


  • Subject: Re: Move files to the right folder.
  • From: "Mark J. Reed" <email@hidden>
  • Date: Wed, 18 Oct 2006 17:43:44 -0400

On 10/18/06, kai <email@hidden> wrote:
tell (ASCII character 10) to set l to {return, it, return & it, it & return}

You're awfully fond of that tell..it idiom, aren't you? :)

repeat with i in l
        set text item delimiters to i's contents
        set i's contents to paragraphs of ({"a", "b", "c"} as string)
end repeat
set text item delimiters to {""}

l --> {{"a", "b", "c"}, {"a", "b", "c"}, {"a", "b", "c"}, {"a", "",
"b", "", "c"}}

So in other words, lone CR, lone LF, and CR+LF are each regarded by "paragraphs of" as a single separator, while LF+CR is regarded as two separators in a row and therefore yields a blank "paragraph" that is considered to be between them. Good to know.

Was pre-X Mac OS similarly newline-agnostic, or did it only regard CR
as a line separator?

--
Mark J. Reed <email@hidden>
_______________________________________________
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


  • Follow-Ups:
    • Re: Move files to the right folder.
      • From: kai <email@hidden>
References: 
 >Move files to the right folder. (From: Jan Bultereys <email@hidden>)
 >Re: Move files to the right folder. (From: Yvan KOENIG <email@hidden>)
 >Re: Move files to the right folder. (From: kai <email@hidden>)
 >Re: Move files to the right folder. (From: Yvan KOENIG <email@hidden>)
 >Re: Move files to the right folder. (From: "Mark J. Reed" <email@hidden>)
 >Re: Move files to the right folder. (From: kai <email@hidden>)

  • Prev by Date: Re: newbe - Making iTunes Browser Window active
  • Next by Date: Re: newbe - Making iTunes Browser Window active
  • Previous by thread: Re: Move files to the right folder.
  • Next by thread: Re: Move files to the right folder.
  • Index(es):
    • Date
    • Thread