Skip to content

Instantly share code, notes, and snippets.

@shanonvl
Last active August 29, 2015 14:19
Show Gist options
  • Save shanonvl/e6403b27001b99e35a7a to your computer and use it in GitHub Desktop.
Save shanonvl/e6403b27001b99e35a7a to your computer and use it in GitHub Desktop.
Enable Pasting of Clipboard Contents into Secure
# 1. Open Script Editor
# 2. Paste the below into the editor
tell application "System Events" to tell process "SecurityAgent"
set value of text field 1 of window 1 to (the clipboard)
click button 1 of group 1 of window 1
end tell
# 3. Execute action that pops the password dialog e.g. `ssh example.com`
# 4. Click the Play button in the script editor window to paste the clipboard contents into the dialog.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment