Page 1 of 1

Save some data question

Posted: Sat Apr 10, 2010 11:31 pm
by lohill
If I have a variable called tData that contains lines of comma delimited data and I have another variable called tExport (created from 'ask file') that contains "/Users/Larry/Desktop/List.csv" shouldn't the following statement save the data to that file on my desktop:

put tData into URL tExport

I'm not sure what I'm missing. Thanks.

Larry

Re: Save some data question

Posted: Sat Apr 10, 2010 11:41 pm
by sturgis
Try this.

Code: Select all

   put tData into URL ("File:" & tExport)
And check out file, and binfile in the dictionary for more info.

Re: Save some data question

Posted: Sun Apr 11, 2010 3:27 pm
by lohill
Thanks sturgis,

That worked just fine. I had looked up URL in the dictionary but had not thought of looking up File.

Regards,
Larry