| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
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: http://lists.apple.com/mailman/options/applescript-users/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>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.