Skip to content

Instantly share code, notes, and snippets.

@nonrational
Created March 24, 2016 15:16
Show Gist options
  • Save nonrational/22c503e5c03c6e8a6c34 to your computer and use it in GitHub Desktop.
Save nonrational/22c503e5c03c6e8a6c34 to your computer and use it in GitHub Desktop.
Viscosity Connect and Duo Push
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
@coreyja
Copy link

coreyja commented Oct 19, 2016

Hehe, I was trying to set this up today and this was the first result in one of my Google Searches! 💯 Thanks man!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment