Is it possible to disable the copy-paste feature? I would prefer system-wide, but a solution for a single application would be a good start.
You might also disable the pboard process:
launchctl unload -w /System/Library/LaunchAgents/com.apple.pboard.plist
After quitting and reopening applications, pasting should stop working in most contexts. It also makes drag and drop and many services stop working.
You can undo the changes by replacing
load or by editing
Depending on what you are trying to do, you might use a background process that resets the clipboard periodically. For example save this plist as
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC -//Apple Computer//DTD PLIST 1.0//EN http://www.apple.com/DTDs/PropertyList-1.0.dtd> <plist version="1.0"> <dict> <key>KeepAlive</key> <true/> <key>Label</key> <string>disablecopypaste</string> <key>ProgramArguments</key> <array> <string>osascript</string> <string>-e</string> <string>repeat set the clipboard to "" delay 1 end repeat</string> </array> <key>RunAtLoad</key> <true/> </dict> </plist>
Then load it with
launchctl load ~/Library/LaunchAgents/disablecopypaste.plist or by logging out and back in