I have both Hazel and KM, so I am not sure which works better.
I have a USB backup drive (Secure) that I want to move a folder contents (call it MOVEME) to when it connects. I see in Keyboard Maestro I can trigger events when the USB drive is mounted, but I can’t seem to find a way to tell it to copy a folder’s contents.
Alternatively, is there a way to tell Hazel when the USB drive is connected, move the files?
You could just trigger a shell script to copy the folder contents in Keyboard Maestro.
Thanks! I didn’t even think of using a shell script. I will give that a try.
@sylumer’s shell script solution should work too, but just for fun and practice (and because I still don’t know enough about shell scripts) I had a play with this. The below worked for me, with the caveat that the ‘Copied’ folder (or whatever you want to call it) seems to need to already exist. If you wanted to move instead of copy the files you could change the ‘copy’ action.