copy large files in Rev on Mac
Klaus Major
klaus at major-k.de
Wed Dec 5 08:31:38 EST 2007
Dag Mark,
> Hi Klaus,
>
> Why not simple this...
>
> on xCopyFile theFile,theNewFile
> open file theFile for binary read
> open file theNewFile for binary write
> repeat until it is empty
> read from file theFile for 10000
> write it to file theNewFile
> wait 0 millisecs with messages
> end repeat
> close file theFile
> close file theNewFile
> end xCopyFile
>
> It is faster than you'd expect and you could add a progress bar. Of
> course, you need to set the file type and creator and you might
> want to copy the resource fork. All that isn't in this simple example.
Hmmm, might be a solution but will of course fail with OS X apps and
files that are actually bundles,
like most iWork documents (Pages, Numbers etc...)
Anyway, hartelijk bedankt :-)
> Best regards,
>
> Mark Schonewille
>
> --
>
> Economy-x-Talk Consulting and Software Engineering
> http://economy-x-talk.com
> http://www.salery.biz
Regards
Klaus Major
klaus at major-k.de
http://www.major-k.de
More information about the use-livecode
mailing list