I’d do this in Keyboard Maestro. You can find some ideas in this topic.
I’m sure there’s a scriptable way to do this, with terminal commands diskutil mount and diskutil unmount, but I’m not expert enough to give advice 
I’d do this in Keyboard Maestro. You can find some ideas in this topic.
I’m sure there’s a scriptable way to do this, with terminal commands diskutil mount and diskutil unmount, but I’m not expert enough to give advice 