Status Busy - does this work?
Status Busy - does this work?
- Subject: Status Busy - does this work?
- From: email@hidden
- Date: Wed, 22 Jun 2005 15:32:26 +1000
The file I'm trying to copy is a data file which is often in use. So
I thought I'd try and determine if that was the case as part of my
script.
If I run
set item_info to info for file "1GIG: SPELEAN: Spelean data"
set item_busy to busy status of item_info
I get a result of this in the event log
tell current application
info for file "1GIG: SPELEAN: Spelean data"
{name:" Spelean data", creation date:date "Wednesday,
20 April 2005 10:42:38 PM", modification date:date "Wednesday, 22
June 2005 2:47:55 PM", icon position:{0, 0}, size:2.59200392E+8,
folder:false, alias:false, package folder:false, visible:true,
extension hidden:false, name extension:missing value, displayed
name:" Spelean data", default application:alias "Lt
Data:Applications:OMNIS7371:OMNIS 7 Dev", kind:"OMNIS 7 Dev
Document", file type:"O7$D", file creator:"O7$3", type
identifier:"dyn.agk8y8r3eku", locked:false, busy status:false, short
version:"", long version:""}
end tell
Now I _know_ this file is in use (I can't copy it by dragging in the
Finder). So what's with the returned result of "busy status:false"? I
would have expected a property called busy to be true if the file was
in use.
The file in question is on a shared folder from an xserve.
Cheers, Andrew Pavey
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden