squatto / alfred-imessage-2fa

iMessage 2FA Workflow for Alfred
MIT License
111 stars 7 forks source link

Simulate keystrokes instead of vanilla paste #10

Closed cmer closed 4 years ago

cmer commented 4 years ago

Some websites or applications do not support pasting of 2FA codes. That's quite annoying.

To work around that, I disabled the "system" paste and use AppleScript to simulate keystrokes instead.

squatto commented 4 years ago

Thank you @cmer, this is an excellent change! I constantly have this problem with Wells Fargo's online banking, and have had to delete and retype the last number of the code every single time.

squatto commented 4 years ago

FYI I'm going to add option + enter to use the system paste, for those that don't want to grant Alfred the necessary "System Events" access

cmer commented 4 years ago

I think that’s a great idea.