Comma-Delimited Files on Macs

Matthias Rebbe matthias_livecode_150811 at m-r-d.de
Sat Sep 17 19:25:04 EDT 2011


Gregory,

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).

HTH,

Matthias
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?
> 
> Regards,
> 
> Gregory
> 
> 
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the Use-livecode mailing list