Re: Importing/parsing CSV files
Re: Importing/parsing CSV files
- Subject: Re: Importing/parsing CSV files
- From: Emmanuel <email@hidden>
- Date: Thu, 7 Sep 2006 14:42:55 +0200
Hi,
Hi Tom :-)
Does anyone have a handler for import a CSV (comma separated value)
file into an AppleScript list? I need to allow for full CSV spec,
such as values which contain quotes, and commas within quotes, or
return/linefeed within quotes.
If you don't get the reply you expect, maybe you have to write your
own parser: my advice would then be to use Satimage osax' regular
expressions, and this post to remind you that the latest Satimage
osax implements (at last) "lazy" regular expressions, for instance to
find the shortest string matching a pattern rather than the longest.
(you just have to say, e.g.: ".*?" with an additional question mark
where you would have said ".*")
Emmanuel
_______________________________________________
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