Created
September 28, 2012 02:41
-
-
Save sike/3797651 to your computer and use it in GitHub Desktop.
VPN: shortcut trigger for quicksilver
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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