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

Re: Is a network file in use?


  • Subject: Re: Is a network file in use?
  • From: Rob Jorgensen <email@hidden>
  • Date: Thu, 25 Mar 2004 06:16:06 -0500

At 8:14 PM -0500 3/24/04, Mark Douma wrote:
On Mar 23, 2004, at 1:18 PM, Jones, Robert wrote:

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?


The 'info for' command of the Standard Additions scripting addition has a "busy status" property.

For example, if I run the following script in Script Editor, I'll get the corresponding result:

set my_file_ to alias "mdouma46:Desktop:46.jpg"
set my_file_info_ to info for my_file_
set busy_status_ to busy status of my_file_info_

Result: false

Based on my tests in Jaguar, the result, in most cases, will be false no matter what the actual status of the file might be. I will continue to consider busy status useless until all applications are required to set the flag or until the OS or Finder does it for them. My opinion: "busy status" should be removed from the results of the "info for" command until it returns accurate, reliable information.

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


References: 
 >Is a network file in use? (From: "Jones, Robert" <email@hidden>)
 >Re: Is a network file in use? (From: Mark Douma <email@hidden>)

  • Prev by Date: Re: AppleScript & HTML Again...
  • Next by Date: Re: AppleScript & HTML Again...
  • Previous by thread: Re: Is a network file in use?
  • Next by thread: Re: Is a network file in use?
  • Index(es):
    • Date
    • Thread