• 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: How to tell if a file is busy?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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. <--


  • Follow-Ups:
    • Re: How to tell if a file is busy?
      • From: Chris Page <email@hidden>
References: 
 >Re: How to tell if a file is busy? (From: David Simerly <email@hidden>)

  • Prev by Date: Re: Barriers to Applescript adoption
  • Next by Date: Network scripting in 9.1 vs 8.6
  • Previous by thread: Re: How to tell if a file is busy?
  • Next by thread: Re: How to tell if a file is busy?
  • Index(es):
    • Date
    • Thread