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