Skip to content

Instantly share code, notes, and snippets.

@kylehowells
Last active August 29, 2015 14:08
Show Gist options
  • Save kylehowells/3993873769c8cce944b4 to your computer and use it in GitHub Desktop.
Save kylehowells/3993873769c8cce944b4 to your computer and use it in GitHub Desktop.
Force Paste
on run {input, parameters}
tell application "System Events"
keystroke (the clipboard as text)
end tell
return input
end run
@kylehowells
Copy link
Author

In Automator create a new "Service". Select run AppleScript. Paste that code in. Set the input to "No input". Save it as "Force Paste".
Now in the System prefs > Keyboard > Shortcuts > Services assign a keyboard shortcut to the "Force Paste" service.

Now you can override applications that don't let you paste things into them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment