Skip to content

Instantly share code, notes, and snippets.

@ernestom
Created August 21, 2012 17:45
Show Gist options
  • Save ernestom/3417789 to your computer and use it in GitHub Desktop.
Save ernestom/3417789 to your computer and use it in GitHub Desktop.
Connect VPN applescript
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