Note: Run this script as the root user (no sudo calls are used in the script).
You will need the curl package installed, though I would have no idea why it wouldn't be installed by default:
zypper --non-interactive install curl
| -- 1. Open Security & Privacy System Preferences, go to Privacy, Accessibility | |
| -- 2. Enable Applescript Editor | |
| -- Usage: <script> gatewayHostName password | |
| -- based on https://gist.github.com/andrewh/7135352 and https://github.com/seanfisk/juniper-network-connect-vpn-applescript/blob/master/juniper.applescript | |
| on run argv | |
| if (count of argv) is not equal to 2 then | |
| return "Usage: <script> gatewayHostName password" | |
| else |