转换在applescript中导入的CSV ora TAB文件,以创建列表

时间:2019-05-13 15:30:51

标签: list csv import applescript

我有一个Apple脚本可以发送短信,它可以正常工作(感谢大家)。 现在,我需要指示文本消息的文本目标。 目标是csv文件的记录的“ n”行。 我没有发现要导入csv文件(ora选项卡)的任何内容,以创建可以在当前脚本中使用的列表。

csv的格式如下:

date, time, tel, 
date1, time1, tel1
date2, time2, tel2
date"n", time"n", tel"n"

文件示例

13 maggio 2019,"10:15","pippo ","3311778887"
13 maggio 2019,"10:45","paperino","3482433330"
13 maggio 2019,"11:00","topolino","3474442397"

我需要在Apple脚本中获取它:

{" date1 ", " date2 ", " date"n", }
{" time1 ", " time2 ", " time"n", }
{" tel1 ", " tel2 ", " tel"n", }

当前CSV / TAB通过导出Filemaker文件来提供。

我现在拥有的是这个

  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}

打开CSV文件后,我可以看到csv文件中的所有文本格式错误,并带有很多“ /”和“”字样。 如果我添加标签文件,那么我在开始和结束处只有“”,而没有更多... 伙计们一些提示...请

0 个答案:

没有答案