Skip to content

Instantly share code, notes, and snippets.

View harveyphan's full-sized avatar

Thang Phan harveyphan

  • http://creationcoding.co.uk
  • Hanoi, Vietnam
View GitHub Profile
@adgedenkers
adgedenkers / vpn_connection.scpt
Created October 11, 2012 18:16
Toggle Connection to VPN on a Mac via AppleScript
tell application "System Events"
-- get current clipboard contents as a string
set CurrentClipboard to the clipboard as string
-- set the clipboad to your password
set the clipboard to "Y0urVPNPa$$w0rd"
-- start playing with the VPN
tell current location of network preferences