Last active
December 15, 2025 19:47
-
-
Save andrewh/7135352 to your computer and use it in GitHub Desktop.
Revisions
-
andrewh revised this gist
Oct 24, 2013 . 1 changed file with 5 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,8 +1,9 @@ -- 1. Place in ~/Library/Scripts and enable the Applescript menu via the Applescript Editor -- 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 Applescript Editor and System UI Server -- 5. Trigger script from the menu -- 6. Enjoy being connected tell application "Cisco AnyConnect Secure Mobility Client" activate -
andrewh revised this gist
Oct 24, 2013 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -11,8 +11,8 @@ repeat until application "Cisco AnyConnect Secure Mobility Client" is running delay 1 end repeat tell application "System Events" repeat until (window 1 of process "Cisco AnyConnect Secure Mobility Client" exists) delay 1 end repeat tell process "Cisco AnyConnect Secure Mobility Client" keystroke ("vpn.example.com" as string) -
andrewh revised this gist
Oct 24, 2013 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -5,7 +5,7 @@ -- 5. Enjoy being connected tell application "Cisco AnyConnect Secure Mobility Client" activate end tell repeat until application "Cisco AnyConnect Secure Mobility Client" is running delay 1 -
andrewh created this gist
Oct 24, 2013 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,28 @@ -- 1. Place in ~/Library/Scripts and enable the Applescript menu via the Applescript Editor -- 2. Open Security & Privacy System Preferences, go to Privacy, Accessibility -- 3. Enable Applescript Editor and System UI Server -- 4. Trigger script from the menu -- 5. Enjoy being connected tell application "Cisco AnyConnect Secure Mobility Client" activate end tell repeat until application "Cisco AnyConnect Secure Mobility Client" is running delay 1 end repeat tell application "System Events" repeat until (window 1 of process "Cisco AnyConnect Secure Mobility Client" exists) delay 1 end repeat tell process "Cisco AnyConnect Secure Mobility Client" keystroke ("vpn.example.com" as string) keystroke return end tell repeat until (window 2 of process "Cisco AnyConnect Secure Mobility Client" exists) delay 1 end repeat tell process "Cisco AnyConnect Secure Mobility Client" keystroke ("redacted" as string) keystroke return end tell end tell