Hi,
I am using the following very simple extension for many months now:
#popclip
name: ProFind
icon: square PF
url: profind://search?q={popclip text}
The target app ProFind can be found here:
The issue is, however, completely unrelated to this target app. It’s here only for simple testing purposes.
Very recently, PopClip started to take >30s to work on a simple text selection of the frontmost Safari browser window - showing the spinning wheel on a grey background. Text selections in any other app respond in fractions of a second - no matter which extension. Getting the text selection in Safari seems to be clearly the issue.
An Apple Script like this one
tell application "Safari"
set selectedText to (do JavaScript "window.getSelection().toString()" in document 1)
end tell
return selectedText
also responds immediately. So does simple copying by cmd-C.
Restarting Safari does not fix it. Automation privileges are of course set.
Seems to be unrelated to Safari extensions: same issue in private window.
To repeat: PopClip works, but takes an excessive amount of time for something that should be done in milliseconds.
Does anybody see this too? What could I try to fix this? Thanks!
Some more observations:
• PopClip seems to obtain the selected text right away, since it is possible to load a different page while the spinner is running, close the front window etc. It simply seems to wait for a timeout. After that the correct text selection is used and the call to PopClip gets completed as if nothing happened.
• I tried disabeling all Safari extensions (assuming some kind of conflict), tried things from a virgin user account, etc. etc. No conclusive results.
• What seems to help - SOMETIMES only - is to quit and restart PopClip! Sometimes means, less than once in five or more tries. So my successful tries from a virgin user account seem to have depended on PopClip being launched at login (// i. e. “restarted” by logging in). So what is really going on here?
• Currently the issue is gone as if nothing had ever happened, in my standard working environment. I really have no clue what happened.
General question: is there something like a cache or similar in PopClip that may or may not get cleared under certain circumstances, which may explain what I saw?
Just found something, but doesn’t seem to be accessible no matter what:
/private/var/root/Library/Caches/com.pilotmoon.popclip