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: John W Baxter <email@hidden>
- Date: Thu, 27 Sep 2001 11:14:11 -0700
ARRGH! I don't see a quick way to fix my message and keep context. So
here's a repost. Sorry!
The change is in step 3 of the recipe, which should read as below...the
original said BBEdit, not SimpleText.
At 23:49 -0700 9/26/2001, Chris Nebel wrote:
>
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.
Or maybe not...BBEdit for one works hard to avoid it. Do some
experimenting with SimpleText and BBEdit
1. Create a file with SimpleText...save and close it.
2. Open the file in BBEdit
3. Open the file in SimpleText...make a change and save and close the file.
4. Observe that BBEdit has picked up the change.
5. Now make a change in BBEdit but don't save it.
6. Open the file in SimpleText, make a change, and save and close the file.
7. BBedit alerts that the file has been changed, but that it hasn't
updated its file content to match because of its own unsaved changes
(paraphrased heavily). At this point, the user decides which changes to
discard.
BBEdit 6.1.2...I forget how far back this behavior goes. But for an app
which doesn't hold the file open for writing while potentially changing it,
this is at least semi-decent behavior.
--John
--
John Baxter email@hidden Port Ludlow, WA, USA