Is a network file in use?
Is a network file in use?
- Subject: Is a network file in use?
- From: "Jones, Robert" <email@hidden>
- Date: Tue, 23 Mar 2004 13:18:32 -0500
I've done some reading through the archives but can't find a reference to my
specific issue:
Multiple users on multiple Macs (OS X 10.2.8 at the moment, but moving to
Panther soon) opening and closing files on a network volume. Files will also
be written to (and read from) via AppleScript, but obviously can't be
written to if someone already has the file open (locally or over the
network... server is also OS X). How can I trap whether the file is in use,
or busy, or locked by someone?
I've tried using Jon's Commands and fileIsBusy but that seems to return
false no matter what. I've also tried "open for access ... with write
permission" assuming that an error will occur if the file is already being
access: same result as fileIsBusy; it works everytime, no error. I even
thought I had a breakthrough when I got TextEdit to return a list of all
open files, thinking I could match the open file list against my target
file, but then I remember someone could have the target file open on another
Mac.
So I'm stumped. Any suggestions?
Robert
Robert Jones
Digital Ad Technician
The Toronto Star
---------------
Digital Ad Help Line: 416-869-4665, menu option #4
Visit us on the Web:
http://www.thestar.com/prepress
_______________________________________________
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.