Created
October 22, 2014 19:41
-
-
Save tjluoma/6a80ce00edb2989228d7 to your computer and use it in GitHub Desktop.
Change "VPN-Unlimited-US-Сenter" to whatever the name of your VPN connection is
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| tell application "System Events" | |
| tell network preferences | |
| set VPNservice to service "VPN-Unlimited-US-Сenter" | |
| set isConnected to connected of current configuration of VPNservice | |
| if not isConnected then | |
| connect VPNservice | |
| end if | |
| end tell | |
| end tell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment