I tab a lot between tasks and would like to make sure that I do not accidentally paste something where it does not belong. Thus, is there a feature or an app that allows me to auto-clear my clipboard after n seconds or after having pasted n times?
MacOS – Clear Clipboard on OS X after ‘n’ seconds
copy/pastemacos
Best Answer
The script below clears the clipboard every S seconds:
Save it to a file named
pbclear
, set executable permissions withchmod +x pbclear
, and put it somewhere in your path, for instance,/usr/local/bin
. Then run it in the background withpbclear 60 &
to clear the clipboard every 60 seconds.