• 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: Ed Stockly <email@hidden>
  • Date: Sun, 17 Mar 2002 14:59:04 -0800

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.

NG

Wow. You learn something new every day. I didn't think there were any cases where using the file reference number was more reliable, but it seems there is one.

I'm not convinced this is enough of a potential problem to change the way I use the open/read/write/close commands, or to tell people that using the file ref number is required, but it certainly is good to know in case that error ever comes up.

ES
_______________________________________________
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.

  • Prev by Date: Re: theSIMS -- Applescript copy paste from Explorer
  • Next by Date: Try these
  • Previous by thread: Re: Open files
  • Next by thread: Re: Open files
  • Index(es):
    • Date
    • Thread