Re: How to tell if a file is busy?
Re: How to tell if a file is busy?
- Subject: Re: How to tell if a file is busy?
- From: Doug McNutt <email@hidden>
- Date: Thu, 27 Sep 2001 13:07:08 -0600
There's more to this than meets the eye.
Some time ago I was trying to wait until Netscape had downloaded a
document into a file using https. I used a variety of techniques,
AppleScript, MacPerl, attempting to wait by repeatedly attempting to
open the file for write access expecting the open to fail until
Netscape was finished. It doesn't work. The system allows both
applications to have the file open without complaint. Other browsers
have the same problem and no browser returns a result.
I solved my problem by having AppleScript ask finder to check the
file size until it was "big enough" but that of course assumes I know
how big the file will get.
--
--> The U. S. Census Bureau missed a bet by not counting all of those
embryos in cold storage. <--