• 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: Open files
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: Open files (From: Nigel Garvey <email@hidden>)

  • Prev by Date: Re: Open files
  • Next by Date: Re: Getting a PID and killing a process
  • Previous by thread: Re: Open files
  • Next by thread: Re: Open files
  • Index(es):
    • Date
    • Thread