Re: Open files
Re: Open files
- Subject: Re: Open files
- From: Paul Berkowitz <email@hidden>
- Date: Fri, 15 Mar 2002 21:02:11 -0800
On 3/15/02 8:33 PM, "Shane Stanley" <email@hidden> wrote:
>
On 16/3/02 2:58 PM +1000, Paul Berkowitz, email@hidden, wrote:
>
>
> In the event that a script is aborted when a file which has been opened for
>
> access (esp. with write permission) is still open, is there any way to ask
>
> the system to return file reference numbers of open files, so that one can
>
> close access of them instead of having to reboot?
>
>
Why not just close it by path?
I thought I recalled that it wasn't supposed to work reliably if you had
opened it with write permission, or that you couldn't write to it again. I
thought that the instance which was opened with write permission needs to be
closed by file reference. Nigel went into this exhaustively at one time, I
recall. Perhaps that was with an earlier, faulty version of Standard
Additions. I seem to recall changes being made in both v1.5.5 and 1.6, maybe
1.7.
Anyway, in v1.8.2b3 in OS 9.2.2, it's working just as you say. No problems.
I can even reopen it and write to it again. A great relief. So is the file
ref needed only for 'write', if that, in that case? Not for 'close access'
or 'read'?
--
Paul Berkowitz
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.