• 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: Chris Nebel <email@hidden>
  • Date: Thu, 27 Sep 2001 10:10:34 -0700
  • Organization: Apple Computer, Inc.

Michelle Steiner wrote:

> On 9/26/01 11:49 PM, Chris Nebel <email@hidden> wrote:
>
> >The difficulty, as Chris points out, is that some applications don't leave
> the
> >disk file open while the document is "open". The file system is telling the
> >truth -- the file itself is not busy, and anyone is free to read from or
> write
> >to it, but the application that opened the file earlier may stomp on your
> >changes later.
>
> Isn't this true of most memory-resident applications (the original
> MacWrite, for instance) that load the entire file into RAM, and write
> back to disk when saving the file?

Not necessarily. While most applications even today load the entire file into
RAM, many leave the disk file open to prevent anyone else from getting write
access to it -- that way, they don't have to worry about the kind of checks that
BBEdit does. (Project Builder has a similar feature.)

> Of course with single-user, single-application OSs, like the original Mac
> OS, this isn't a problem.

Indeed. OSs and applications are much easier to write if you don't multi-task,
don't allow multiple users, and don't have a network. I remarked to someone
yesterday that computer security was a lot simpler when everyone on the net was
friendly...


--Chris Nebel
AppleScript Engineering


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

  • Prev by Date: Any way to Mount Local Volume?
  • Next by Date: Re: "Accepts high-level events" bust in Finder?
  • 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