I have a flash drive, let's name it FLASH
.
I want, when on my mac, when FLASH
is plugged (and automatically mounted), execute a specific script and make ~/Documents
to be automatically copied to /Volumes/FLASH/Documents
(mac mounts drives at /Volumes
).
This same drive, FLASH
, (with this new Documents
folder added before with the mac situation), when plugged in an Ubuntu machine, I want it to automatically copy FLASH/Documents
to ~/Documents
(or automatically execute an script, after mounting).
How should I do this in these different scenarios? I don't want to use third party applications for this, I prefer using core/builtin tools available in both platforms.