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
[EMAIL PROTECTED]
http://www.major-k.de


_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to