Suddenly, selected text is copied to clipboard

I started using PopClip a few months ago and find it incredibly useful. I also use ClipboardHistory, one of the numerous clipboard managers available.

When I first started using PopClip I do not remember selected text being automatically copied to the clipboard. My main uses of PopClip are changing capitalization, removing spaces, or adding hyphens. Recently I started noticing my ClipboardHistory being littered with these bits of text that I had applied PopClip actions to.

In another thread Nick implies this is a bug in MacOS (I’m on Catalina). The only update I may have done recently was maybe a security update or something minor, not a system upgrade. Sequential Paste just FASTER! - #4 by nick

I would like for this not to happen if possible, but it’s an annoyance, not a dealbreaker. I could see it being problematic on for someone not using a clipboard manager because it would change the sole contents of the clipboard.

1 Like

Are you finding that the selected text is being copied and actually left on the clipboard? Or only appearing in the history?

PopClip uses the clipboard as its way to see what text you have selected oin some apps. Specifically, will get the app to copy, look at the text, then put back the original contents. It all happens in a few milliseconds.

But some clipboard managers are so fast at detecting the changed clipboard, that they show this very brief clipboard change in the history. Normally you don’t notice but having a clipboard manager can make it show up. (Not all clipboard manager are affected, indeed a couple have specifically added a mechanism to make sure it doesn’t happen for PopClip clipboards.)

Thank you for that explanation – it explains a lot. And yes, the contents of the clipboard are changed.

I use ClipboardHistory by Agile Route. I tried adding PopClip to its ignored apps list, and restarted CH, but it still happens. No doubt because CH is only looking at the frontmost app for its exclusion list.

I don’t see PopClip putting back the original contents of the clipboard, if that’s what you meant. Experimentally, I quit ClipboardHistory and then applied PopClip to some selected text. It still copied it to the clipboard, without doing an explicit Copy command. So it doesn’t appear to be Clipboard-History-specific. I experimented in Mail, TextEdit, and Safari (under Catalina).

Did I misunderstand what you meant about PopClip restoring the contents of the clipboard?

1 Like

I just ran across this discussion from last year.

It sounds like you are experiencing a bug rather than the expected behaviour. When I’ve debugged this in the past, PopClip is trying to put back the contents but the macOS clipboard for some reason does not accept the update. It has only happened to me once or twice in the last 10 years or so, so I’ve never been able to reliably reproduce the fault to debug it. And then, usually it goes away again quite quickly. Very frustrating. Does the problem persist past reboots?

BTW Clipboard History is one of the clipbpoard managers that does work well with PopClip (when it’s all behaving itself).

I feel so special!

I think it does persist past reboots, because I started noticing it a week or two ago. But I’ll try a reboot and see, because I wasn’t paying close enough attention and I don’t reboot that often.

Thanks for the reply. You’re very attentive :slight_smile:

@nick I am also experiencing this problem with Paste app , popclip automatically copying selected texts to clipboard so in Paste app clipboard history .Its too annoying as being scholar i need to work upon several texts daily. Paste History daily getting filled with 100s of selected texts. I tried adding POPCLIP in ignored apps list but no avail.
Please HELP ! sir
Thanks

Hi @Genxster , thanks for reporting this.

Previously, PopClip has been compatible with Paste, because the Paste developers made a change in their app especially to be compatible.

Can you tell me the following info:

PopClip version:
Paste version:
Name of app selecting text in:

To avoid the annoyance when this happens, either turn PopClip auto-appear off completely (i.e. turn OFF in settings) or add the app where the problem happens (not Paste, but the app you’re using text in) to PopClip’s Excluded Apps list. Then, use PopClip’s keyboard shortcut to make PopClip appear only when you want it.

Hi, @nick thanks for reply.
PopClip version : 2023.7
Paste version: 3.1.5
Application : Almost everyone like Word, Firefox
I am on catalina so i can not upgrade Paste app i think.

I think using shortcut for popclip defeat the half purpose of using it. I already have tons of keyboard shortcut mapped , i am not comfortable with shortcuts every time . but as you said if it can not be solved then i may use it very less at last indeed.
Thanks & Regards

I tried it on the latest Paste 4, and it worked OK. And like I mentioned, Paste has been designed specifically to avoid the problem, including version 3, which you have.

There’s nothing I can offer for Word (apart from adding it to the PopClip excluded apps list) but in Firefox:

  1. Type about:config in Firefox address bar.
  2. Set the value of accessibility.force_disabled to -1.

This will allow PopClip use the Accessibility API to read the text and avoid meeting with the clipboard.

Beyond that I can suggest quit and restart both PopClip and Paste, and also try a full reboot, which sometimes help.

I know what you mean about keyboard shortcuts (which is why PopClip only has one to remember… and for years, it had none at all, but it seemed to be necessary for these sort of cases).

1 Like

Thanks sir , will try the above recommendations . BTW it has been very useful for scholar persons like me .

1 Like