Capture "Stop" event on file copy

I have an applescript that is copying a bunch of files to the users hard drive and I want to be able to do something if they hit the “Stop” button when the copy progress box comes up. Does anyone know how I can test to see if they hit “Stop”?

Thanks in advance,

Paul

I don’t know of a way to detect the use of the stop button but, depending on how your script is written, maybe you can work around it. When Finder duplicates an item, it returns a reference to the duplicated item. The script could generate a list of these references for comparison to the list of items slated for duplication.

– Rob