import csv to become a list in applescript
Hi guys, I'm frozen.
I have a CSV file, exported from FileMaker, with date, time, telephone number.
date1,time1,tel1
date2, time2, tel2
dateN,timeN, telN
I need create 3 list8s) usable in applescript to perform some further actions.
{date1, date2, ... dateN}
{time1, time2, .... timeN}
{tel1, tel2, ....telN}
but I'm not able to get out from the MUD.
I have this, but just give me back {,}
set theFile to choose file with prompt "Select a csv file:"
set theFileContents to read theFile
set recs to paragraphs of theFileContents
set vals to {}
set AppleScript's text item delimiters to {","}
than in my attempt I reach to import all the CSV, but in a real mess, all confused with / and " everywhere
After that i tried this
set theFile to choose file with prompt "Select a csv file:"
set theFileContents to read theFile
--set theList to paragraphs of theFileContents
set namelist to {theFileContents}
Which open the CSV file, i can see all the text in the csv file bad formatted with a lot of / and " which are just craps. While if I improt tab file, i just have " at begin and end, and no mor