Created
August 21, 2012 17:45
-
-
Save ernestom/3417789 to your computer and use it in GitHub Desktop.
Connect VPN applescript
This file contains 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 current location of network preferences | |
set VPNService to service "SVPN" | |
if exists VPNService 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