• 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: Importing/parsing CSV files
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Importing/parsing CSV files


  • Subject: Re: Importing/parsing CSV files
  • From: has <email@hidden>
  • Date: Thu, 7 Sep 2006 18:40:16 +0100

Mark J. Reed wrote:

On 9/7/06, T&B <email@hidden> wrote:

> Many popular parsers, like Perl's Text::CSV, fail on such values (though Text::xSV handles them)

So is the latter reliable? Is it built into Mac OS X? Is there a way to tie it into a script such as using do shell script?

It's a non-bundled Perl module.

Python's csv module is present on 10.3+; see <http://docs.python.org/ lib/module-csv.html> for documentation. Looks solid enough; a few issues if you need to use it with non-ASCII csv data, but nothing that can't be worked around if necessary.


Easiest way to call it from AS would be to wrap it as a scriptable faceless background application - just a few lines of Python code plus a short sdef. If you have to avoid external dependencies then it'd be possible to mash together a solution that writes an AE list to an AS-readable file.

has
--
http://freespace.virgin.net/hamish.sanderson/


_______________________________________________ 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
  • Prev by Date: Re: not allowed? with Cron
  • Next by Date: Re: Power Supply
  • Previous by thread: Re: Importing/parsing CSV files
  • Next by thread: Re: Importing/parsing CSV files
  • Index(es):
    • Date
    • Thread