Dot-clipboard – Monitor your clipboard and run scripts based on its content
github.com
github.com
I've always found it to be too intrusive and I've kept it disabled.
http://ditto-cp.sourceforge.net/
I've missed having something similar on this Ubuntu machine I'm using. I'll have a look at CopyQ when my time frees up.
P.S. I seem to recall reading that Ditto allowed at least some level of hooking/triggering based upon content, but I never used it and I may be mis-remembering.
Maybe we need a secure clipboard that guarantees (again, somehow) purging 1) immediately after a paste, and 2) after a specified time period such as 30 seconds.
I had a look at the code because I was curious about how Javascript could interact with the clipboard. I can see that you use "clipboard-watcher" which in turn uses "NodObjC" - which also explains why this is OSX only.
https://github.com/naotaka/ClipMenu
It's a bit of a Swiss Army knife for the clipboard, and among other actions, allows for user-created Javascript to act upon clipboard contents. I don't know if the scripts can be called automatically, however.
http://www.clipmenu.com/static/images/screenshot/en/pref-act...
FWIW, the documentation says it's for OS X 10.5-10.6, but I have it running on 10.9 without issue.