Re: How to deal with Asynchronous Finder operations
Re: How to deal with Asynchronous Finder operations
- Subject: Re: How to deal with Asynchronous Finder operations
- From: "John C. Welch" <email@hidden>
- Date: Fri, 16 Sep 2005 11:37:08 -0500
- Thread-topic: How to deal with Asynchronous Finder operations
On 9/16/05 10:34, "Matt Neuburg" <email@hidden> wrote:
>> Since you're ignoring the response of the Finder's empty trash command, the
>> rest of the script is free to proceed.
>
> That's the exact opposite of what Kumar said he wanted to do. He said he
> *wanted* to wait until the trash is empty.
>
> One possibility (I have not tried this) might be to loop with a delay and
> see whether the trash is in fact empty yet...? m.
Um...couldn't you use a folder action with this? The "removing folder items
from, and whenever it kicked off, run a handler that checks the contents of
the folder. once it's empty then run the script. You might still have to
loop it, but you could reduce the overhead a bit maybe, and that way, you'd
only have to worry about the actual emptying of the trash.
It could be a better starting point?
Hmm...Question for Neb-El...can you tell when a folder action has *stopped*?
--
Cowards die many times before their deaths; the valiant never taste death
but once.
- Shakespeare: Julius Caesar
_______________________________________________
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