• 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: How to parse CSV
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to parse CSV


  • Subject: Re: How to parse CSV
  • From: Benedikt Quirmbach <email@hidden>
  • Date: Wed, 23 Jan 2008 14:07:17 +0100

Yes, I'm thinking about reading the file line by line.

But at the end I need the converted csv data as a string. The goal of this project is to build a string with the csv data as a JavaScript array... If this is a better way... I'm not shure.

As I wrote Skeeve helped me a lot in a privat email conversation. He suggested to use Perl instead of AppleScript. Maybe with an AppleScript as frontend.

Benedikt


Am 23.01.2008 um 12:57 schrieb Mark J. Reed:

On Jan 23, 2008 4:52 AM, Benedikt Quirmbach <email@hidden> wrote:
The real csv files have up to 35000 lines and up to 10 items every line.
Here the handler works endless. As Skeeve said (he testet with 10000
lines) there is a stack overflow.

So why are you trying to slurp the whole 35,000-line file into memory as one big list? Can't you just process each line as you read it?

--
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: Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
  • Follow-Ups:
    • Re: How to parse CSV
      • From: has <email@hidden>
    • Re: How to parse CSV
      • From: KOENIG Yvan <email@hidden>
    • Re: How to parse CSV
      • From: "Mark J. Reed" <email@hidden>
References: 
 >Re: How to parse CSV (From: Benedikt Quirmbach <email@hidden>)
 >Re: How to parse CSV (From: "Mark J. Reed" <email@hidden>)

  • Prev by Date: Re: How to parse CSV
  • Next by Date: Re: How to parse CSV
  • Previous by thread: Re: How to parse CSV
  • Next by thread: Re: How to parse CSV
  • Index(es):
    • Date
    • Thread