Re: Are you busy? info for file while copying
Re: Are you busy? info for file while copying
- Subject: Re: Are you busy? info for file while copying
- From: "Gary (Lists)" <email@hidden>
- Date: Tue, 23 Aug 2005 21:29:00 -0400
"George Bray" wrote:
>
> Apologies if this is a well-known bug/feature, but I wanted to
> confirm with those in the know.
>
> From my testing, the Finder's "info for" call simply always returns
> false for "busy status" and "locked". I was expecting one of them to
> be true while a file copy is in progress.
'locked' refers to the Get Info setting, making the file read-only or what
have you. This returns 'true' or 'false', appropriately, OMM, but it is not
related to a file's status with respect to being opened, in use or fully
committed to the file system.
'busy status' is less useful in the main, but I do use it in at least one
script. It's also used in a number of Apple's examples, and I think worked
better in OS 9.
> Is the accepted way around this to loop over the file until the mod
> date or size stops moving?
You could use Jon's Commands X, version 3.something.b
There is a 'fileIsBusy' command there. My specific experience with that
command is not sufficient to comment on its usage, but in the main, if it's
a "Jon's Command" I feel very confident using it.
> Should this be considered a bug?
You'll have to ask Mr. Death-rage. ;)
--
Gary
_______________________________________________
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