Create a BOOL in KeyBoard Maestro in If-then action.
Scenario: Mail account is only accessible behind a VPN connection, how to keep on using Apple Mail Client for your email accounts. Requirements: Keyboard Meastro Shimo VPN client Some Unix knowledge Solution: First we need to make sure that the settings for the VPN client, has set the routing of the internal network(s) to be used via the VPN. Add the needed DNS entries to your /etc/hosts file. For obvious reason do I not enter these here. Sufficient to say: Figure out what the internal servers are, Or they are provided by your local IT admin. Prepare your “Keyboard Maestro” actions. In Keyboard Maestro you have the option to use variables. You can also create an variable in the Apple Script you have as part of the complete script. ...