From 3a28ae033b63d64e3ed2a4acb25a16b493725e05 Mon Sep 17 00:00:00 2001 From: Euan Reid Date: Sat, 26 Nov 2016 16:14:52 -0800 Subject: [PATCH] Initial commit of viscosity applescript --- scripts/ec2gaming-vpnup.viscosity.scpt | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 scripts/ec2gaming-vpnup.viscosity.scpt diff --git a/scripts/ec2gaming-vpnup.viscosity.scpt b/scripts/ec2gaming-vpnup.viscosity.scpt new file mode 100644 index 0000000..77bfa9b --- /dev/null +++ b/scripts/ec2gaming-vpnup.viscosity.scpt @@ -0,0 +1,8 @@ +tell application "Viscosity" + connect (connections where name is "ec2gaming") + set currentState to state of connections where name is "ec2gaming" + repeat until currentState = "Connected" + delay 1 + set currentState to state of connections where name is "ec2gaming" + end repeat +end tell