Comma-Delimited Files on Macs
matthias_livecode_150811 at m-r-d.de
Sat Sep 17 18:25:04 CDT 2011
i had a similiar question today.
Just put one of the following lines
set the filetype to "????CSV"
set the filetype to "XCELCSV"
in the script before you write the file.
???? means the CSV file is opened in the default application set in the system´s preferences.XCEL means the file is assigned to be opened by Excel ( if installed).
Am 17.09.2011 um 23:40 schrieb Gregory Lypny:
> Hello everyone,
> When I create comma-delimited files with LiveCode by running handlers such as
> repeat with i=1 to 10
> put i & comma & “something” & comma & “more stuff” & return after theData
> end repeat
> put theData into url (“file://“ & filePath)
> the file type shows up as Document rather than CSV Document in the Finder’s Get Info window. Why is that, and is it possible to save as CSV Document?
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
More information about the use-livecode