I use a little gem called "Folder Actions"

@Tom, many thanks for sharing this macro. It is really useful.

I started with your macro and added to it. My revised macro is posted here: