Re: HOWTO check if file is completly copied - OS9
Re: HOWTO check if file is completly copied - OS9
- Subject: Re: HOWTO check if file is completly copied - OS9
- From: Emmanuel <email@hidden>
- Date: Mon, 7 Feb 2005 23:02:58 +0100
At 7:50 PM +0100 2/7/05, Bart wrote:
I need to make a script for OS9, a file need to be modified.
The file is being copied over the network.
So before doing something with the file, I need to check is the file
is complete!
Anyone a trick to do this thing?
Either you know the size of the file, and you poll the size of the
downloaded file until it reaches the known value, or you don't and
the only thing you can do is deciding that if its size remains equal
for, say, 10 seconds, then probably the file is complete.
Also, there are some files whose end can be detected. For instance,
in some circumstances you can assume that a html file ends with
</html>. Some image file formats include their own size (up to some
offsets) in the file's header, I think.
Emmanuel
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden