Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- set Tunnelblick to "/Applications/Tunnelblick.app"
- set VPN to "Home"
- if application "Tunnelblick" is not running then
- tell application "Tunnelblick" to activate
- end if
- tell application "Tunnelblick"
- set status to (get state of first configuration where name = VPN)
- if (status = "EXITING") then
- tell application "Tunnelblick"
- connect VPN
- end tell
- else
- tell application "Tunnelblick"
- disconnect VPN
- end tell
- end if
- end tell
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement