Starting a VPN if it is not connected via AppleScript
Launching a VPN if it is not connected on OS X:
tell application "System Events"
tell current location of network preferences
set VPNservice to service "My VPN" -- name of your VPN
set isConnected to connected of current configuration of VPNservice
if not isConnected then connect VPNservice
end tell
end tell
…prefect for automating “things” in Proxi.