Re: Folder action cancel
Re: Folder action cancel
- Subject: Re: Folder action cancel
- From: Emmanuel <email@hidden>
- Date: Fri, 23 May 2003 15:33:15 +0200
At 9:54 AM -0400 22/05/03, Andrew wrote:
>
We have a folder action script in OS 9 that takes quite a long time to run.
>
It copies a file to multiple computers on the network doing a sort of
>
software release.
>
>
Recently my clumsy colleagues have been accidentally dropping files in that
>
folder by mistake. It got me wondering if there was any way of cancelling
>
the folder action script once it gets going. For that matter is there any
>
way of signalling the script to stop? The only thing I can come up with is
>
to put a file in another folder and have the script check to make sure the
>
file is still there after each copy. If it's not there it should take that
>
to mean that it should stop itself or not run in the first place.... A sort
>
of safety catch. Can anyone think of anything better? Less hack-ish...
I find that your suggestion is quite convenient. Now, the simplest may be, in your case, that the first line of the script be some display dialog "do you really want to process those files, considering that this will take approximately 334 years, 2 months and 8 days" buttons {"Okie","OOOPS!"}.
Emmanuel
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.