This script will do exactly what you want. I think.
Save it and set it to executable. You'll then have to call it from within SD's Advanced settings to run the shell script after copy completes.
Dave, if you want to include this script with SD feel free.
Andy