Re: file is already open & file wasn't open
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