• 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: Simon Forster <email@hidden>
  • Date: Wed, 26 Sep 2001 07:59:21 +0100

On Tuesday, September 25, 2001, at 11:46 PM, David Simerly wrote:

I want to check if a file on a mounted volume from an ASIP server is
in use before trying to copy it.
This is based on a sample script from Sal Soghoian, Apple Computer
This code returns Busy: false when I know the file is in use. Why is it so?

Because the Busy flag is *supposed to be* updated by the application that is
using the file. To date, the only application I know of that properly
updates this flag for AppleScript is the Finder. If the file is opened by
some other app, forget it. HTH.

I've found out that the Busy flag is not reliable the hard way. As a work around, I try opening the file to read it and trap any error returned but there must be a better way no?

Simon Forster
________________________________________________
LDML Ltd, 4/5 Hazlitt Mews, London, W14 0JZ, UK
<tel int="+44 20 7602 9370" uk="020 7602 9370">
<fax int="+44 20 7371 6662" uk="020 7371 6662">
<mailto:email@hidden>
________________________________________________


References: 
 >Re: How to tell if a file is busy? (From: David Simerly <email@hidden>)

  • Prev by Date: RE: AS adoption barriers [Starter Kit]
  • Next by Date: Re: Question re: OS 9.1 Bug
  • 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