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

Re: CsvToListOfText


  • Subject: Re: CsvToListOfText
  • From: R Morris <email@hidden>
  • Date: Thu, 14 Dec 2006 11:47:37 +0000


On 14 Dec 2006, at 1127AM, Emmanuel wrote:

At 11:06 AM +0000 12/14/06, R Morris wrote:
That's interesting.

I tried the script below

1. with Script Editor (Version 2.1.1 (81) AppleScript 1.10.7) I get (in the Result window)

{{"item1", "item2", "NULL", "item4"}, {"item5", "item6", "NULL", "item'7'"}, {"item9", "item10", ""}, {"item11", "", "item13"}, {"", "item15", "item16", "", "item18"}}

2.  with Smile 3.2.0b (build 344) I get (in the Console window)

{{"item1", "item2", "NULL", "item4
item5", "item6", "NULL", "item'7'
item9", "item10", "
item11", "", "item13
", "item15", "item16", "", "item18"}}

Smile still uses CR for the line delimiter, while SE uses LF.

Emmanuel


OK that explains the different formats of the displayed result but sorry I wasn't clear about my main comment which (should have been) "the results are different in content"

see the item between item 10 and item 11
and the item between item 13 and item 15

T&B posted the 'correct' parsing as

{{"item1", "item2", "NULL", "item4"},
{"item5", "item6", "NULL", "item'7'"},
{"item9", "item10", ""},
{"item11", "", "item13"},
{"", "item15", "item16", "", "item18"}}

which is as the Script Editor version (except for CR/FL differences)

Roger
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/mailman//archives/applescript-users


This email sent to email@hidden
References: 
 >Re: Importing/parsing CSV files (From: T&B <email@hidden>)
 >CsvToListOfText (From: T&B <email@hidden>)
 >Re: CsvToListOfText (From: R Morris <email@hidden>)
 >Re: CsvToListOfText (From: Emmanuel <email@hidden>)

  • Prev by Date: Re: strings and strings (was Don't get it.)
  • Next by Date: Re: awk question
  • Previous by thread: Re: CsvToListOfText
  • Next by thread: Re: CsvToListOfText
  • Index(es):
    • Date
    • Thread