how to copy files?

Klaus Major k_major at osnabrueck.netsurf.de
Wed Jan 16 17:23:01 EST 2002


Hi Niklas,

> Actually, if I'm not mistaken, "clone" is for objects inside the 
> stack. I
> have
> had some succes with the "put URL" command.
> Try this...
>
> put URL "file:C:/myFile.txt" into "file:C:/myCopiedFile.txt"
>
> ~Roger
>
> Niklas wrote:
> Is there any way to copy files? found delete file but
> nothing for copying..
> thanks,
> /Niklas

please note that script above copies only in textmode !
Ideal for plain text-files.

To copy all other types of files use:

put URL "binfile:C:/myFile.jpg" into "binfile:C:/myCopiedFile.jpg"


On a Mac it is a bit more complex because of the "Type" and 
"Creator"-Code
needed by the OS. (To correctly handle doubleclicks on that file etc...)

Please drop a note if you would like to know the "mac-way", too :-)


Regards

Klaus Major




More information about the use-livecode mailing list