Created
March 24, 2016 15:16
-
-
Save nonrational/22c503e5c03c6e8a6c34 to your computer and use it in GitHub Desktop.
Viscosity Connect and Duo Push
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 characters
tell application "Viscosity" to connect "Connection Name w/ Duo Push" | |
tell application "System Events" | |
repeat until exists (window "Viscosity" of application process "Viscosity") | |
delay 0.5 | |
end repeat | |
tell process "Viscosity" | |
set value of text field 1 of window "Viscosity" to "push" | |
delay 1 | |
click button "OK" of window "Viscosity" | |
end tell | |
end tell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hehe, I was trying to set this up today and this was the first result in one of my Google Searches! 💯 Thanks man!