Skip to content

Instantly share code, notes, and snippets.

View fergie's full-sized avatar

David Ferguson fergie

View GitHub Profile
@fergie
fergie / anyconnect.scpt
Last active November 6, 2015 12:27 — forked from andrewh/anyconnect.scpt
Applescript to automate the Cisco AnyConnect SSL VPN client on OS X Mavericks
-- 1. Place in ~/Library/Scripts and enable the Applescript menu via the Apple Script Editor
-- (Or export to .app to run from spotlight.)
-- 2. Substitute "vpn.example.com" and "REDACTED" for your VPN server and password
-- 3. Open Security & Privacy System Preferences, go to Privacy, Accessibility
-- 4. Enable Script Editor (or this .app if so exported)
-- 5. Trigger script from the menu (or run from spotlight)
-- 6. Enjoy being connected
-- 7. Run script again to close connection