![]() ![]() Replacing configuration-name with the name of your configuration. Osascript -e "tell application \"/Applications/Tunnelblick.app\"" -e "connect \" configuration-name \"" -e "end tell" One way is to store the AppleScript in a file and then invoke it withĪnother way is to include the AppleScript commands in the command line with, for example, You can connect, disconnect, and list configurations. You can invoke AppleScript from the command line to control Tunnelblick. It returns immediately after starting an attempt to connect using a particular configuration and does not indicate the connection has been accomplished successfully.įor an example of using Tunnelblick's AppleScript support to solve a particular problem, see this discussion. The "connect" verb, for example, is the equivalent of clicking the "Connect" button. Please note that the verbs only initiate actions. Tunnelblick itself also uses scripts see Using Scripts.ĪppleScripts may connect, disconnect, or list Tunnelblick configurations. This document is about making Tunnelblick do things via scripting. Controlling Tunnelblick from the Command Line
0 Comments
Leave a Reply. |