Re: Move files to the right folder.
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