Skip to content

Instantly share code, notes, and snippets.

@nolili
Created March 2, 2014 15:53
Show Gist options
  • Save nolili/9308532 to your computer and use it in GitHub Desktop.
Save nolili/9308532 to your computer and use it in GitHub Desktop.
tell application "System Events"
tell current location of network preferences
set VPN to service "VPN"
if exists VPN then disconnect VPN
end tell
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment