When OpenVPN Connect establishes a connection, I can manually mount a network share in Finder>Connect to Server>smb://xxx.xxx.xxx.xxx/FolderName. Yay me.
If I want to be fancy, I can also do this with an AppleScript:
open location "smb://user:email@example.com/FolderName"
Sometimes the VPN loses connection and the client reconnects automatically, but the folder is not remounted. I would like to automatically mount/remount upon OpenVPN Connect connecting to the VPN, and I think this can be done by pointing to a script in the config fie, but we have reached the outer limits of my knowledge and ability to Google.
Is this a thing?