• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: HOWTO check if file is completly copied - OS9
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: HOWTO check if file is completely copied - OS9
      • From: Jon Pugh <email@hidden>
    • Re: HOWTO check if file is completly copied - OS9
      • From: Lee Noble <email@hidden>
References: 
 >HOWTO check if file is completly copied - OS9 (From: "Bart" <email@hidden>)

  • Prev by Date: Re: Hiding/Launching Applications Question
  • Next by Date: Re: HOWTO check if file is completly copied - OS9
  • Previous by thread: HOWTO check if file is completly copied - OS9
  • Next by thread: Re: HOWTO check if file is completly copied - OS9
  • Index(es):
    • Date
    • Thread