There are ways to check when the file copy is done, but after doing some testing today, your method has a quirk: You can't tell when the initial paste is done. That's because, for whatever reason, as soon as you press Command-V, the folder reports that all files have been copied to it, even though that's not true.
The way I usually test to see if a file copy is done is to just run the du -s
command repeatedly, with a small gap between each run. When the numbers stop changing, the copy is done.
But with Command-V, the instant those keys are pressed, du -s
reports the full folder size. That makes it really hard to wait until the initial pasting is done before proceeding. The only way I figured to do it was manually—a fake progress bar appears onscreen, and you press 'c' when you see that the Finder's copy window goes away:
After that, though, the future copies are pretty simple to check—the cp
command doesn't run in the background, so one copy completes before the next one starts, so you don't need to check progress on the copy. Here's that version of the macro:
_Copy to folders.kmmacros (9.4 KB)
If you can start without the files on the clipboard, though, you can make it much smoother, as you can use the same cp
command up front to make sure everything's copied before you start. This version of the macro does just that; you select the files to be copied in Finder first, then launch the macro. It runs a bit, then prompts you to pick the destination folders.
The other advantage is you don't have to open the temporary folder in order to paste into it, so it's all GUI-free. Overall, this is a very simple macro:
Macro screenshot
_Copy to folders - no clipboard.kmmacros (5.5 KB)
Neither of these methods are probably ideal for your needs, but they should give you some stuff to play with.
-rob.