Skip to content

Instantly share code, notes, and snippets.

@rubyist
Created August 16, 2010 22:37
Show Gist options
  • Save rubyist/527885 to your computer and use it in GitHub Desktop.
Save rubyist/527885 to your computer and use it in GitHub Desktop.
tell application "System Events"
tell current location of network preferences
set VPNservice to service "Name of VPN"
if exists VPNservice then disconnect VPNservice
end tell
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment