September 2011
1 post
4 tags
Starting a VPN if it is not connected via...
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.