Re: Is a network file in use?
Re: Is a network file in use?
- Subject: Re: Is a network file in use?
- From: Hanaan Rosenthal <email@hidden>
- Date: Thu, 25 Mar 2004 10:07:53 -0500
You may want to look into specific permissions settings on the servers.
Different servers work very differently as well as the applications
that may have the files open.
Some apps 'know' if someone else has the same file open, but some
won't. I don't believe that there's a general rule about server files
that are open over the network.
In my cases I actually managed to get different error numbers when
using 'open for access... with write permission'.
In another client's case, I had an entire system counting on a server's
rules for busy files and other script related permissions. This all
changed one day when they switched from NetWare to Windows 2000, and I
had to change all my scripts.
Whatever you do to check permissions, do it in a library file you use
in all your scripts, a sort of a fileBusy(thePath) subroutine. This
will allow you to update it globally when the server situation changes.
Hanaan
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?
>
>
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.
>
>
--
Hanaan Rosenthal * Custom Flow Solutions
MEDIA AUTOMATION CONSULTING
401-487-2957 * email@hidden
* www.customflowsolutions.com *
be successful... ...work less.
_______________________________________________
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.