Paste text even when prohibited in OS X (password dialogs etc)

I wrote a tiny AppleScript application which pastes text into fields which do not allow Cmd+V pasting (like password prompts). This may come in handy when working through VNC/remote desktop or virtualization software (such as Apple Screen Sharing, Parallels Desktop etc). Personally I use it to type in my password into the login screen of the Windows virtual machine.

cant-paste-password

To put it in simple terms: the app uses the virtual keyboard to type in the text from your clipboard. It tricks the program that asks for your input into thinking that you’re actually typing on your keyboard.

The downside of the app is that it occupies space in the Dock.

Download Force Paste.app (~15KB). Don’t forget to drag it into your Dock!

(Advanced users may want to use it from the Script menu rather than the Dock. Download main.scpt and put it to ~/Library/Scripts/ directory).

GitHub repository: https://github.com/EugeneDae/Force-Paste

This entry was posted in Releases and tagged . Bookmark the permalink.

31 Responses to Paste text even when prohibited in OS X (password dialogs etc)

  1. Dwayne says:

    how do you actually use this little app?

  2. Oliver says:

    Thank you so much Dae, this is a genius script. I just got a new external drive and was horrified I couldn’t paste my randomly generated 50 character/digit/symbol/upper-case/lower-case password! You have just saved me at least half-an-hour!

    kudos!

  3. George says:

    Thank you so much for creating this and making it freely available. Now I can keep using long random passwords without going insane. A lifesaver.

  4. Kelvin says:

    This little app is awesome! The perfect companion to 1Password!

  5. Paolo G. Giarrusso says:

    Thanks a lot!

  6. Brian Aker says:

    Hi!

    Do you have the entire project pushed up to github anywhere?

    Thanks,
    -Brian

  7. Andy Ibanez says:

    Fantastic tool Dae.

    I really hate it how we can’t copy paste into the text field whenever we are asked for a password, like when working with certificates or encrypting disk images.

    I will try to fork the project to do it a little bit more friendly. Thanks a lot for the tool and for releasing the source code.

  8. Curtis Jackson says:

    Thank you thank you thank you thank you! from a 1Password user.

  9. Max says:

    Great script Dae! thanks a lot

  10. miguel says:

    is there anyway to use an app to map the trigger to a function key (or any other key for that matter)?

  11. Adam says:

    I love you for this!

  12. Ivan says:

    First I didn’t realise that the script has to be dragged to dock. After doing that – it just works.

    Passwords copied to clipboard from password manager are getting pasted to pass field for encrypted images without any problem.

    The easiest and the most elegant solution that I could find by far.

    Thanks a lot Dae:)

  13. Gene says:

    Hi,

    Great tool but it did not work for me on my MacBook Pro with the latest OS X.

    I figured out that I have to type at least one character in password field and then delete it before Force Paste will paste into the field. Now Force Paste saves me a lot of time.

    Thanks!

    • Dae says:

      Hi Gene, I also use MacBook Pro with the latest OS X 10.10.3 and Force Paste works straight away for me. I wonder why it doesn’t in your case?

      If you could record a small screencast using LICEcap or a similar app, possibly it’d give me a hint.

  14. David Joerg says:

    THANK YOU!

  15. Pingback: » Apple:Why can't I paste into the password dialog when mounting an encrypted disk image?

  16. sleepcircle says:

    Thanks! Super cool. I will treasure this always.

  17. Rosa says:

    You are absolutely a divine send!!! Thank you soooo much!!!

  18. Max_G says:

    Doe this also work in El Capitan?

  19. IT H8r says:

    Works very nicely in Citrix where they have the copy/paste disabled and you really don’t want to type that whole stinking URL into MS Explorer just to use some web site that is non-standard.

    Used this app and it typed directly to my Citrix window from the clipboard. Sweet!

  20. Dan Gildea says:

    Used LastPass this weekend to create really complex passwords for all my internet accounts, including Google Apps.

    After restarting my computer, my local Google Drive.app asked for the new password.
    Of course, I wasn’t able to just cut and paste this new incredibly complex password into the field in Google Drive.app.

    I went on a hunt and found Force Paste:
    http://dae.me/blog/1741/paste-text-even-when-prohibited-in-os-x-password-dialogs-etc/
    It solved my problem immediately.

  21. Clark Carneal says:

    This is a fabulous little app. Thank you so much!

  22. Rick B. says:

    This is a very helpful and awesome tool.

    I’m trying to paste a complex password that uses ‘ü’, but when I copy it and ForcePaste does its thing, it’s change to a regular ‘a’

    Is there a work around for this?

    • Dae says:

      Thanks, but I’m afraid this can’t be fixed easily. The problem lies in AppleScript’s “keystroke”, which only outputs characters immediately available on a typical English keyboard. It won’t type Russian letters either. I’m afraid I can’t do anything about that :/

  23. Richard Smith says:

    Thank you so much. A great tool and saved me hours of work. Truly appreciated !

  24. John Basile says:

    Dae
    Love the App. I have a dialog that comes up every hour.. ask for my credentials, name & password… royal pain in the ass.

    Anyway, is there a script/app to use a keyboard short cut that enters the cursor in the userName field, paste in the name, then goes on to the password field.. and past in the password from your script…then hits return…boy would that be nice!

Leave a Reply

Your email address will not be published. Required fields are marked *