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: Chris Page <email@hidden>
- Date: Tue, 25 Sep 2001 16:11:39 -0700
nigh on 9/25/01 3:46 PM, David Simerly at email@hidden wrote:
>
on 9/24/01 5:36 PM, email@hidden at email@hidden 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.
What flag? As a long-time Mac application developer, this is the first I've
heard of this.
--
Chris Page
Mac OS Lead, Palm Desktop
Palm, Inc.
Software development is the art of cajoling megabytes of random noise into
doing something reasonably useful, or at least not life-threatening.