folder actions - how to wait until file has been copied

Hi,

Using AppleSscript, I am copying files around several drives, and exporting them out of QuickTime. It seems that I need to wait until the file has been entirely copied or exported before I can process the next step.

Search BBS archive, it seems that isDone() or folderaction_isDone() handlers could be exactly what I need but unfortunately the Code Exchange is offline for maintenance.

Does any of you have the script somewhere to share or is there another script/method that I could use?

I know that I could use the “info for” command but I’ve heard it was not always accurate…

Thank you in advance for your help,

Guillaume

If somebody can’t help you with the folderAction_isDone handler - you could look at trying the script I recently added to script builders.

It is not a folder action - but checks a folder every x number of seconds which you can set near the beginning of the script. To use the script you need to replace the code in the ProcessThisFile handler with your own code.

See:
http://scriptbuilders.net/category.php?id=2128

Though it stays running as an application its cpu load when not actually processing is neglible.

Kevin