Re: Open files
Re: Open files
- Subject: Re: Open files
- From: Paul Berkowitz <email@hidden>
- Date: Sat, 16 Mar 2002 16:30:33 -0800
On 3/16/02 9:06 AM, "Nigel Garvey" <email@hidden>
wrote:
>
My exhaustive tests were with AS 1.3.7 - and my conclusions were later
>
confirmed by simply reading the AS Scripting Additions Guide. 8-\
>
>
When an open file's referred to by path, the system uses the first
>
existing 'open for access' reference for that file that comes to hand. If
>
there's only one such reference, closing the file using the path closes
>
that reference and all's well.
>
>
That's the likely situation, but it's possible for a file to be open
>
several times at once, each opening having its own reference and
>
associated file pointer. Only one of these references can have write
>
permission. If that's the reference you've lost, you'll have to keep
>
closing the file by path until the appropriate reference surfaces and its
>
closure enables you to reopen the file with write permission. This may
>
have implications for other processes which haven't lost their references
>
and are trying to read the file.
Thanks, Nigel. Makes sense.
--
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.