• 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
Is a network file in use?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: Is a network file in use?
      • From: Hanaan Rosenthal <email@hidden>
    • Re: Is a network file in use?
      • From: Mark Douma <email@hidden>
  • Prev by Date: Re: Quark 6 Text Boxes Name Errors
  • Next by Date: Re: Fink and 'sh'
  • Previous by thread: Re: corruption of variables
  • Next by thread: Re: Is a network file in use?
  • Index(es):
    • Date
    • Thread