Establishing a VPN connection using Apple Script

You can use Apple Script to connect to your VPN accounts. See the example below for a typical script.

tell application “Shimo”

set p to accountvpn.rwth-aachen.de

if p is connected then

  disconnect account p

else

   connect account p

end if

end tell