copy large files in Rev on Mac
m.schonewille at economy-x-talk.com
Wed Dec 5 08:28:10 EST 2007
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
close file theFile
close file theNewFile
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.
Economy-x-Talk Consulting and Software Engineering
Quickly extract data from your HyperCard stacks with DIFfersifier.
Op 5-dec-2007, om 13:18 heeft Klaus Major het volgende geschreven:
> Hi all,
> how can one copy large files WITHOUT blocking everything?
> revCopyFile uses Applescrip which is blocking! At least in Rev, but
> NOT when
> using the same script with the AppleScriptEditor!? :-/
> Using "shell" is also blocking!
> "put url("binfile:"...)" is a no-no with > 1GB video files
> Is there a way at all? Do I want too much again?
> Klaus Major
> klaus at major-k.de
More information about the Use-livecode