DEV Community

loading...

Discussion on: Connect to a VPN from the Command Line on Mac OS

Collapse
gamergun profile image
GamerGun

Since Big Sur, it inserts the password into the "Account Name" field (probably because the focus is on that field by default). Any idea how to resolve that?

Collapse
tuksaur profile image
tuksaur

you can add tab to the enterPassword function after sleep 1, should resolve from printing password in username field.

osascript -e "tell application \"System Events\" to keystroke tab"

Collapse
gamergun profile image
GamerGun

Thank you, works like a charm!