I've been using an AppleScript for connecting to my office VPN. After updating my macbook to 10.9.3, it fails to execute, and throws an exception
Unable to get network preferences
(honestly, it is loose translation, if anyone know how to make AppleScript editor to show errors in english I would be glad).
tell application "System Events" tell current location of network preferences set VPNservice to service "VPN (L2TP)" -- name of the VPN service if exists VPNservice then connect VPNservice repeat until (connected of current configuration of VPNservice) delay 1 end repeat do shell script "route add 192.168.11.0/24 10.64.64.64" with administrator privileges end tell end tell
Does anyone know what could have caused the problem?