I’ve looked at multiple posts on this forum, and I’m still flummoxed.
I suspect something is wrong either at the beginning of the Python script, or more likely in the config file.
When I invoke PopClip, my extension is there, but I cannot “select” it. That is, when I cursor right to try to invoke my extension (which is the last in the list), PopClip rolls back around to the magnifying glass.
I’m a new user, so I cannot attach files yet. Here’s my Config.yaml file:
name: DryjaPat
icon: icon.png
shell script file: script.py
after: paste-result
actions:
- title: Clean Text
And here’s the first few lines and the last lines of my script.py file:
#!/usr/bin/env python3
import os
import re
# get the selected text from PopClip
text = os.environ['POPCLIP_TEXT']
...
# output result to PopClip
print(text, end='')
I think the script is correct – at a minimum, it should just return the text it read – but I strongly think that I’m not invoke script.py correctly…
Though it could be something else entirely.