Skip to content

Instantly share code, notes, and snippets.

@sike
Created September 28, 2012 02:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sike/3797651 to your computer and use it in GitHub Desktop.
Save sike/3797651 to your computer and use it in GitHub Desktop.
VPN: shortcut trigger for quicksilver
tell application "System Events"
tell current location of network preferences
set Modemdailup to service "VPN2"
if exists Modemdailup then disconnect Modemdailup
set Modemdailup2 to service "VPN3"
if exists Modemdailup2 then disconnect Modemdailup2
end tell
end tell
// tell application "System Events"
// tell current location of network preferences
// set VPNservice to service "VPN3" -- name of the VPN service
// set isConnected to connected of current configuration of VPNservice
// if isConnected then
// disconnect VPNservice
// else
// 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