Skip to content

Instantly share code, notes, and snippets.

@soh-i
Created July 1, 2012 01:00
Show Gist options
  • Save soh-i/3026329 to your computer and use it in GitHub Desktop.
Save soh-i/3026329 to your computer and use it in GitHub Desktop.
VPN
tell application "System Events"
tell current location of network preferences
set VPNservice to service "VPN" -- name of the VPN service
if exists VPNservice then connect VPNservice
end tell
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment