Save with different extension

Magnus von Brömsen webmaster at
Mon Mar 25 02:23:01 EST 2002


I want to save a text-file with different extension (on Windows) – if 
this is possible (?). So, I have this script:

on mouseUp
   ask file "Save order as:"  with filter "Excel file,*.xls","Word 
file,*.doc","Plain text,*.txt"
   if it is empty then exit mouseUp
   put field "OrderData" into url ("file:" & it)
end mouseUp

I can choose between the different types, but I have to manually write 
the extension to the filename to have the file associated to the 
Can that be done in the script?


"Tiden går och Macen består"
Studio Alice
Magnus von Brömsen
0702-212 495
0322-633 833
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 846 bytes
Desc: not available
URL: <>

More information about the use-livecode mailing list