
An extension packaging scripts to control main OpenVPN functionality.
List OpenVPN profiles and connect/disconnect them.
Connect/Disconnect the last OpenVPN profile used
Disconnect current OpenVPN profile.
isRunning function has been updated to rely on the existance of the menu bar (which we leverage later to connect/disconnect anyway) instead of command line checks which are less reliableFixed a bug where OpenVPN would not start because of minimize flag. UI now shows up and a short delay was added to wait for the UI to be ready for AppleScript.
Improved error handling
For this extension to work, you need to have OpenVPN client installed and configured. It was built upon the Script Command authored by @aaronhmiller, @nhojb and @dehesa.