• 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: reading a CSV file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: reading a CSV file


  • Subject: Re: reading a CSV file
  • From: Rob Lewis <email@hidden>
  • Date: Wed, 9 Feb 2005 06:09:50 -0800

This is clever! Question: if I execute "get theSource", the result box shows:

"453.25, \"Large, red car\""

It seems to me that since theSource is a string, it shouldn't have the outer quotes, and the inner quotes shouldn't be escaped. What's the story?


On Feb 9, 2005, at 5:02 AM, email@hidden wrote:

-- in lieu of reading a file I'm going to define the string here
-- replace with your code to read lines of the file
set theSource to "453.25, \"Large, red car\""

-- here's the magic
run script "{" & theSource & "}"
--> { 453.25, "Large, red car" }

 _______________________________________________
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

  • Follow-Ups:
    • Re: reading a CSV file
      • From: Michelle Steiner <email@hidden>
  • Prev by Date: Re: Saving AppleWorks as PDF (Applescript-users Digest, Vol 2, Issue 92)
  • Next by Date: Re: where are the shell scripts ?
  • Previous by thread: Re: Reading a csv file
  • Next by thread: Re: reading a CSV file
  • Index(es):
    • Date
    • Thread