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: Lee Noble <email@hidden>
- Date: Mon, 7 Feb 2005 22:06:51 +0000
On Feb 7, 2005, at 22:02, Emmanuel wrote:
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
_______________________________________________
I know it's only applicable for folder actions but isn't there an on
receiving event handler which detects whether an item has finished
copying over.
Just a thought
Lee
_______________________________________________
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