macosclipboardfinderrecent-file-list

Are there programs or scripts which can clear the clipboard on Mac without a reboot?


Could one have a script or program for Mac, which would when run, clear the clipboard as well as Finder's "Recent Folders" list in the Go menu?


Solution

  • Running this command in a terminal:

    $ printf '' | pbcopy
    

    will clear the clipboard by setting it's contents to an empty string.

    For clearing Finder's Recent Folders List, this terminal command seems to work:

    $ defaults write com.apple.Finder FXRecentFolders {} ;killall Finder