Re: set "busy status" ?
Re: set "busy status" ?
- Subject: Re: set "busy status" ?
- From: Philip Aker <email@hidden>
- Date: Sat, 28 Jun 2008 09:24:13 -0700
On 08-06-28, at 08:24, KOENIG Yvan wrote:
System Events define a disk item property named "busy status".
It is defined as read only.
Is there a way to change this status thru a shell script?
I don't think so. But you should be able to detect whether or not a
file is considered open at the unix level by using 'lsof'.
I wish to write a script used as a substitute to the Open function
in iWork components.
These programs doesn't set the "busy status" to busy when they open
a doc.
So, it's technically possible to a user B to open a file stored on a
network when the user A is already using the file.
The result is: the document is killed.
As I can't change the busy status, at this time I hope (just hope)
that if a shell script give the ability to set the flag to busy, an
attempt to open it will send an alert to the second user.
Philip Aker
echo email@hidden@nl | tr a-z@. p-za-o.@
Democracy: Two wolves and a sheep voting on lunch.
_______________________________________________
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