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: 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>
________________________________________________