• 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: file is already open & file wasn't open
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: file is already open & file wasn't open


  • Subject: Re: file is already open & file wasn't open
  • From: Emmanuel <email@hidden>
  • Date: Sat, 21 Apr 2007 14:22:41 +0200

At 1:31 AM +0200 4/21/07, Arnaud Nicolet wrote:
I read somewhere that a major difference between Mac OS X and Mac OS 9 is that, under Mac OS X, you can now open a file for access even if it is already open by another application (I think the last to close it makes the changes) while it was not possible under OS 9 and earlier.

This suggests that you can open a given file for access with write permission from two different applications, which may be misleading as such. The facts on OSX are the following.


Once an application A has opened a given file with write permission:
- any app may access the file in read-only mode (simple open for access),
- attempting to open the file with write permission from the same app results in error number -49,
- attempting to open the file with write permission from another app on the same machine results in error number -54,
- attempting to open the file with write permission from another app on another machine results in no error: it's like Arnaud says, the latest to save the file wins (I suppose, I didn't test that specifically.)


Emmanuel
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
  • Follow-Ups:
    • Re: file is already open & file wasn't open
      • From: Doug McNutt <email@hidden>
References: 
 >file is already open & file wasn't open (From: Gil Dawson <email@hidden>)
 >Re: file is already open & file wasn't open (From: Arnaud Nicolet <email@hidden>)

  • Prev by Date: Costa Bugg is out of the office.
  • Next by Date: Re: file is already open & file wasn't open
  • Previous by thread: Re: file is already open & file wasn't open
  • Next by thread: Re: file is already open & file wasn't open
  • Index(es):
    • Date
    • Thread