Save with different extension
Magnus von Brömsen
webmaster at studioalice.se
Mon Mar 25 02:23:01 EST 2002
Hello
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
application.
Can that be done in the script?
/magnus
----------------------------------------------------------------------------
"Tiden går och Macen består"
-----------------------------------------------------------------------------
Studio Alice
Magnus von Brömsen
0702-212 495
0322-633 833
www.studioalice.se
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 846 bytes
Desc: not available
URL: <http://lists.runrev.com/pipermail/use-livecode/attachments/20020325/157834f2/attachment.bin>
More information about the use-livecode
mailing list