Skip to content
This repository has been archived by the owner on Mar 26, 2024. It is now read-only.

Clipboard History OCR for Alfred #36

Closed
Alvt5 opened this issue Apr 4, 2022 · 5 comments
Closed

Clipboard History OCR for Alfred #36

Alvt5 opened this issue Apr 4, 2022 · 5 comments

Comments

@Alvt5
Copy link

Alvt5 commented Apr 4, 2022

Workflow name

Clipboard History OCR for Alfred

Workflow page

https://www.alfredforum.com/topic/16090-text-search-inside-clipboard-history-images/#comment-81929

Extra details

It was working until latest Monterey update. I had reloaded Python but still having issues when I execute the installer.

STDERR: Clipboard History OCR[Run Script] mkdir: /Users/xxxxxxxx/Library/LaunchAgents: File exists
xattr: ./Tesseract.app: No such xattr: com.apple.quarantine
Load failed: 5: Input/output error

Did these too
launchctl load -wF ~/Library/LaunchAgents/alfred-clipboard-history-ocr.plist
Chmod 755 the plist
Added python 3 to security/privacy disk access

So far, nothing.
Hope this can be updated as it's useful to search text in images in clipboard.

@vitorgalvao
Copy link
Member

Added python 3 to security/privacy disk access

Python 3 doesn’t fit into it, you have to follow the instructions and reinstall Python 2. But this Workflow has other possible issues, like the deprecated commands it uses to load the launchd job.

Try this one first. Be sure to run .clipboard-history-ocr-uninstall, reboot your machine, then do .clipboard-history-ocr-install. Does it work?

If it doesn’t, redo the process above with this version.

@Alvt5
Copy link
Author

Alvt5 commented Apr 7, 2022

Thanks Vitorgalvao.
I did the steps as suggested:
Reinstall Python 2
Tried First version , didn't work
Tried 2nd version, didn't work

Debugger showed same error as before:

[08:55:28.010] Clipboard History OCR[Keyword] Processing complete
[08:55:28.011] Clipboard History OCR[Keyword] Passing output '' to Run Script
[08:55:28.085] STDERR: Clipboard History OCR[Run Script] mkdir: /Users/alvin/Library/LaunchAgents: File exists
xattr: ./Tesseract.app: No such xattr: com.apple.quarantine
Load failed: 5: Input/output error
Try running launchctl bootstrap as root for richer errors.

@vitorgalvao
Copy link
Member

Those errors aren’t in the Python section of the Workflow. For those, please contact its developer.

@Alvt5
Copy link
Author

Alvt5 commented Apr 8, 2022

Thanks Vitorgalvao. I've pm'ed the author since there was no reply in the GitHub. I really appreciat your help and what you do for the Alfred community.

@vitorgalvao
Copy link
Member

Thank you for the kind words of appreciation!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants