Re: set "busy status" ?
Re: set "busy status" ?
- Subject: Re: set "busy status" ?
- From: deivy petrescu <email@hidden>
- Date: Sat, 28 Jun 2008 14:23:01 -0400
On Jun 28, 2008, at 11:24, KOENIG Yvan wrote:
Hello
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 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.
Yvan KOENIG (from FRANCE samedi 28 juin 2008 17:23:55)
Hello Yvan.
One thing you might try, since you are dealing with System Events is
using "transaction".
This should close the file for any other activity.
tell app "SE"
begin transaction
--code here
end transaction
end tell
Apparently I am getting some erros OMM.
You can try and see if it works.
Deivy
_______________________________________________
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