You can simulate typing text with AppleScript: tell application "System Events" to keystroke "your text goes here"
@deanishe, I want to avoid copy/pasting gpg passwords as I fear that those passwords can be sniffed from clipboard. I was thinking about using custom workfow with bitwarden cli + this apple script. Can you be so kind to advice if such solution might be a bad idea? Like everything that goes using apple scripts is logged in some place and can be easily read? Or maybe you can point me in some direction with the ways to protect my clipboard?
Simulate Typing (or Pasting text without copying to clipboard)
in Workflow Help & Questions
Posted · Edited by zigmundfreud
@deanishe, I want to avoid copy/pasting gpg passwords as I fear that those passwords can be sniffed from clipboard. I was thinking about using custom workfow with bitwarden cli + this apple script. Can you be so kind to advice if such solution might be a bad idea? Like everything that goes using apple scripts is logged in some place and can be easily read? Or maybe you can point me in some direction with the ways to protect my clipboard?