Jump to content

JJJJ

Member
  • Posts

    64
  • Joined

  • Last visited

Everything posted by JJJJ

  1. I think that works. Thank you for your help. But I am not sure OCR works as it should because I get some mixed results for image names. You can find the new content in /tmp/alfred-clipboard-history-ocr.out and clipboard history for images ss below. /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python: can't open file '/Users/Ceyhun/Documents/Alfred.alfredpreferences/workflows/user.workflow.256D9BE8-8BC6-4E35-8640-5D4D5EEDFEF6/ocr.py': [Errno 1] Operation not permitted /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python: can't open file '/Users/Ceyhun/Documents/Alfred.alfredpreferences/workflows/user.workflow.256D9BE8-8BC6-4E35-8640-5D4D5EEDFEF6/ocr.py': [Errno 1] Operation not permitted /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python: can't open file '/Users/Ceyhun/Documents/Alfred.alfredpreferences/workflows/user.workflow.256D9BE8-8BC6-4E35-8640-5D4D5EEDFEF6/ocr.py': [Errno 1] Operation not permitted ObjectCache(0x101b55370)::~ObjectCache(): WARNING! LEAK! object 0x7ff1feed5a60 still has count 1 (id /Users/Ceyhun/Documents/Alfred.alfredpreferences/workflows/user.workflow.256D9BE8-8BC6-4E35-8640-5D4D5EEDFEF6/ocr.app/Contents/Resources/tessdata/eng.traineddatapunc-dawg) ObjectCache(0x101b55370)::~ObjectCache(): WARNING! LEAK! object 0x7ff1fee121b0 still has count 1 (id /Users/Ceyhun/Documents/Alfred.alfredpreferences/workflows/user.workflow.256D9BE8-8BC6-4E35-8640-5D4D5EEDFEF6/ocr.app/Contents/Resources/tessdata/eng.traineddataword-dawg) ObjectCache(0x101b55370)::~ObjectCache(): WARNING! LEAK! object 0x7ff1feed5ac0 still has count 1 (id /Users/Ceyhun/Documents/Alfred.alfredpreferences/workflows/user.workflow.256D9BE8-8BC6-4E35-8640-5D4D5EEDFEF6/ocr.app/Contents/Resources/tessdata/eng.traineddatanumber-dawg) ObjectCache(0x101b55370)::~ObjectCache(): WARNING! LEAK! object 0x7ff2061620d0 still has count 1 (id /Users/Ceyhun/Documents/Alfred.alfredpreferences/workflows/user.workflow.256D9BE8-8BC6-4E35-8640-5D4D5EEDFEF6/ocr.app/Contents/Resources/tessdata/eng.traineddatabigram-dawg) ObjectCache(0x101b55370)::~ObjectCache(): WARNING! LEAK! object 0x7ff1feed5b20 still has count 1 (id /Users/Ceyhun/Documents/Alfred.alfredpreferences/workflows/user.workflow.256D9BE8-8BC6-4E35-8640-5D4D5EEDFEF6/ocr.app/Contents/Resources/tessdata/eng.traineddatafreq-dawg) ObjectCache(0x1009ce370)::~ObjectCache(): WARNING! LEAK! object 0x7fa005228690 still has count 1 (id /Users/Ceyhun/Documents/Alfred.alfredpreferences/workflows/user.workflow.256D9BE8-8BC6-4E35-8640-5D4D5EEDFEF6/ocr.app/Contents/Resources/tessdata/eng.traineddatapunc-dawg) ObjectCache(0x1009ce370)::~ObjectCache(): WARNING! LEAK! object 0x7fa0052286f0 still has count 1 (id /Users/Ceyhun/Documents/Alfred.alfredpreferences/workflows/user.workflow.256D9BE8-8BC6-4E35-8640-5D4D5EEDFEF6/ocr.app/Contents/Resources/tessdata/eng.traineddataword-dawg) ObjectCache(0x1009ce370)::~ObjectCache(): WARNING! LEAK! object 0x7f9ffde09340 still has count 1 (id /Users/Ceyhun/Documents/Alfred.alfredpreferences/workflows/user.workflow.256D9BE8-8BC6-4E35-8640-5D4D5EEDFEF6/ocr.app/Contents/Resources/tessdata/eng.traineddatanumber-dawg) ObjectCache(0x1009ce370)::~ObjectCache(): WARNING! LEAK! object 0x7f9ffdcafb30 still has count 1 (id /Users/Ceyhun/Documents/Alfred.alfredpreferences/workflows/user.workflow.256D9BE8-8BC6-4E35-8640-5D4D5EEDFEF6/ocr.app/Contents/Resources/tessdata/eng.traineddatabigram-dawg) ObjectCache(0x1009ce370)::~ObjectCache(): WARNING! LEAK! object 0x7f9ffde09710 still has count 1 (id /Users/Ceyhun/Documents/Alfred.alfredpreferences/workflows/user.workflow.256D9BE8-8BC6-4E35-8640-5D4D5EEDFEF6/ocr.app/Contents/Resources/tessdata/eng.traineddatafreq-dawg) Error in pixCreateHeader: depth must be {1, 2, 4, 8, 16, 24, 32} Error in pixCreateNoInit: pixd not made Error in pixCreate: pixd not made Error in pixFreeData: pix not defined Error in pixSetData: pix not defined Error in pixSetYRes: pix not defined Error in pixGetSpp: pix not defined Error in pixGetDimensions: pix not defined Error in pixGetColormap: pix not defined Error in pixCopy: pixs not defined Error in pixGetDepth: pix not defined Error in pixGetWpl: pix not defined Error in pixGetYRes: pix not defined Error in pixClone: pixs not defined Please call SetImage before attempting recognition. Please call SetImage before attempting recognition.
  2. This is what is inside when I open the /tmp/alfred-clipboard-history-ocr.out file with xcode. /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python: can't open file '/Users/Ceyhun/Documents/Alfred.alfredpreferences/workflows/user.workflow.256D9BE8-8BC6-4E35-8640-5D4D5EEDFEF6/ocr.py': [Errno 1] Operation not permitted /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python: can't open file '/Users/Ceyhun/Documents/Alfred.alfredpreferences/workflows/user.workflow.256D9BE8-8BC6-4E35-8640-5D4D5EEDFEF6/ocr.py': [Errno 1] Operation not permitted
  3. Hello, It looks very useful for me. I installed it with the keyword ".clipboard-history-ocr-install", but I still cannot find images by words in the clipboard history. I am on 10.15.7 and I get the debugger output below when I try to use ".clipboard-history-ocr-install" keyword again. Is there any more information that I can provide so someone can help me to solve the issue? [15:21:26.791] Logging Started... [15:25:38.629] Clipboard History OCR[Keyword] Processing complete [15:25:38.630] Clipboard History OCR[Keyword] Passing output '' to Run Script [15:25:39.253] STDERR: Clipboard History OCR[Run Script] mkdir: /Users/Ceyhun/Library/LaunchAgents: File exists xattr: ./ocr.app: No such xattr: com.apple.quarantine /Users/Ceyhun/Library/LaunchAgents/alfred-clipboard-history-ocr.plist: service already loaded
  4. killall alfred-firefox command returns as "No matching processes belonging to you were found". So I tried pkill alfred-firefox but it also didn't fix it. Thank you for your interest, perhaps in the next version or smth, it will fix itself somehow.
  5. This is how it works. Ceyhun@Ceyhun-MacBook-Pro ~ % ls -l /usr/bin/lsappinfo -rwxr-xr-x 1 root wheel 241184 Aug 10 23:56 /usr/bin/lsappinfo
  6. I am not sure if that's what you mean but when I run echo $PATH in Terminal, this is what I get. Ceyhun@Ceyhun-MacBook-Pro ~ % echo $PATH /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Library/Apple/usr/bin
  7. Browser extension is still disconnected. This is what I get from Terminal when I run it. Ceyhun@Ceyhun-MacBook-Pro ~ % cd /Users/Ceyhun/Documents/Alfred.alfredpreferences/workflows/user.workflow.8B4F305C-811B-43B3-A0D6-0767A3919E2A && env -i ./server.sh 10:09:16 workflow_paths.go:143: [warning] info.plist not found. Guessed: /Users/Ceyhun/Documents/Alfred.alfredpreferences/workflows/user.workflow.8B4F305C-811B-43B3-A0D6-0767A3919E2A 🍺 10:09:16 workflow.go:327: ----- Firefox Assistant/0.2.1 (AwGo/0.20.2) ------ 10:09:16 actions.go:83: loaded URL action "Open in Chrome" from "~/Documents/Alfred.alfredpreferences/workflows/user.workflow.8B4F305C-811B-43B3-A0D6-0767A3919E2A/scripts/Open in Chrome.sh" 10:09:16 actions.go:83: loaded URL action "Open in Default Application" from "~/Documents/Alfred.alfredpreferences/workflows/user.workflow.8B4F305C-811B-43B3-A0D6-0767A3919E2A/scripts/Open in Default Application.sh" 10:09:16 actions.go:83: loaded URL action "Open in Firefox" from "~/Documents/Alfred.alfredpreferences/workflows/user.workflow.8B4F305C-811B-43B3-A0D6-0767A3919E2A/scripts/Open in Firefox.sh" 10:09:16 actions.go:83: loaded URL action "Open in Safari" from "~/Documents/Alfred.alfredpreferences/workflows/user.workflow.8B4F305C-811B-43B3-A0D6-0767A3919E2A/scripts/Open in Safari.sh" 10:09:16 server.go:83: signalling existing server 11178 to stop ... [11403] 10:09:16 scripts.go:164: ------------- [lsappinfo info -only name #11389] --------------- [11403] 10:09:16 scripts.go:165: [11403] 10:09:16 scripts.go:166: ---------------------------------------------- [11403] 10:09:16 server.go:107: [ERROR] couldn't get app info for pid 11389: exec: "lsappinfo": executable file not found in $PATH [11403] 10:09:16 server.go:129: browser="Firefox" [11403] 10:09:16 workflow.go:342: ------------------ FATAL ERROR ------------------- [11403] 10:09:16 workflow.go:343: listen unix /tmp/alfred-firefox.501.sock: bind: address already in use : goroutine 1 [running]: runtime/debug.Stack(0xc000123d00, 0x1, 0x1) /usr/local/opt/go/libexec/src/runtime/debug/stack.go:24 +0x9d github.com/deanishe/awgo.(*Workflow).Run.func2(0xc00014a000) /Users/daj/pkg/mod/github.com/deanishe/awgo@v0.22.1/workflow.go:343 +0xe7 panic(0x144ef40, 0xc0001ac140) /usr/local/opt/go/libexec/src/runtime/panic.go:679 +0x1b2 main.run() /Users/daj/Code/Alfred/alfred-firefox-assistant/main.go:145 +0x1c8 github.com/deanishe/awgo.(*Workflow).Run(0xc00014a000, 0x14d4a18) /Users/daj/pkg/mod/github.com/deanishe/awgo@v0.22.1/workflow.go:357 +0x2af main.main() /Users/daj/Code/Alfred/alfred-firefox-assistant/main.go:149 +0x39 [11403] 10:09:16 workflow.go:344: ---------------- END STACK TRACE ----------------- listen unix /tmp/alfred-firefox.501.sock: bind: address already in use[11403] 10:09:16 workflow.go:375: [ERROR] listen unix /tmp/alfred-firefox.501.sock: bind: address already in use [11403] 10:09:16 workflow.go:378: Get help at https://github.com/deanishe/alfred-firefox/issues [11403] 10:09:16 workflow.go:401: ------------------ 26.920563ms ------------------- Ceyhun@Ceyhun-MacBook-Pro user.workflow.8B4F305C-811B-43B3-A0D6-0767A3919E2A %
  8. This is what I get when I run the path in the Terminal. Last login: Tue Sep 22 18:24:05 on ttys000 Ceyhun@Ceyhun-MacBook-Pro ~ % /Users/Ceyhun/Documents/Alfred.alfredpreferences/workflows/user.workflow.8B4F305C-811B-43B3-A0D6-0767A3919E2A/server.sh 18:30:54 workflow_paths.go:143: [warning] info.plist not found. Guessed: /Users/Ceyhun 🍺 18:30:54 workflow.go:327: ----- Firefox Assistant/0.2.1 (AwGo/0.20.2) ------ 18:30:54 server.go:83: signalling existing server 10163 to stop ... [11082] 18:30:54 server.go:112: couldn't parse app name from "" [11082] 18:30:54 server.go:129: browser="Firefox" [11082] 18:30:54 workflow.go:342: ------------------ FATAL ERROR ------------------- [11082] 18:30:54 workflow.go:343: listen unix /tmp/alfred-firefox.501.sock: bind: address already in use : goroutine 1 [running]: runtime/debug.Stack(0xc000129d00, 0x1, 0x1) /usr/local/opt/go/libexec/src/runtime/debug/stack.go:24 +0x9d github.com/deanishe/awgo.(*Workflow).Run.func2(0xc00013a000) /Users/daj/pkg/mod/github.com/deanishe/awgo@v0.22.1/workflow.go:343 +0xe7 panic(0x144ef40, 0xc0000b03c0) /usr/local/opt/go/libexec/src/runtime/panic.go:679 +0x1b2 main.run() /Users/daj/Code/Alfred/alfred-firefox-assistant/main.go:145 +0x1c8 github.com/deanishe/awgo.(*Workflow).Run(0xc00013a000, 0x14d4a18) /Users/daj/pkg/mod/github.com/deanishe/awgo@v0.22.1/workflow.go:357 +0x2af main.main() /Users/daj/Code/Alfred/alfred-firefox-assistant/main.go:149 +0x39 [11082] 18:30:54 workflow.go:344: ---------------- END STACK TRACE ----------------- listen unix /tmp/alfred-firefox.501.sock: bind: address already in use[11082] 18:30:54 workflow.go:375: [ERROR] listen unix /tmp/alfred-firefox.501.sock: bind: address already in use [11082] 18:30:54 workflow.go:378: Get help at https://github.com/deanishe/alfred-firefox/issues [11082] 18:30:54 workflow.go:401: ------------------ 74.866879ms ------------------- Ceyhun@Ceyhun-MacBook-Pro ~ % /Users/Ceyhun/Documents/Alfred.alfredpreferences/workflows/user.workflow.8B4F305C-811B-43B3-A0D6-0767A3919E2A/server.sh 18:30:57 workflow_paths.go:143: [warning] info.plist not found. Guessed: /Users/Ceyhun 🍺 18:30:57 workflow.go:327: ----- Firefox Assistant/0.2.1 (AwGo/0.20.2) ------ [11093] 18:30:57 server.go:112: couldn't parse app name from "" [11093] 18:30:57 server.go:129: browser="Firefox" [11093] 18:30:57 rpc_server.go:291: serving RPC on "/tmp/alfred-firefox.501.sock" ... 4{"id":"1600788657.1","command":"ping","params":null}[11093] 18:30:57 firefox.go:137: sent command #1600788657.1 - "ping" [11093] 18:31:02 util.go:57: 5.004087466s ⧗ ping [11093] 18:31:02 server.go:149: [ERROR] timeout: "1600788657.1"
  9. Yes I can find server.sh in the same location. /Users/Ceyhun/Documents/Alfred.alfredpreferences/workflows/user.workflow.8B4F305C-811B-43B3-A0D6-0767A3919E2A/server.sh
  10. Hello, I have been using Safari Assistant workflow but lately, I start using Firefox for my main browser. However, I couldn't make Firefox Assistant work. I have been having the same issues and results with JimmyTheSaint. Firefox browser console gives the output below if it is useful. Is there any way to fix it or are there any info that I can provide to solve the issue? I use Mac OS 10.15.6 and Alfred 4.1.1. stderr output from native app net.deanishe.alfred.firefox: /bin/zsh: can't open input file: /Users/Ceyhun/Documents/Alfred.alfredpreferences/workflows/user.workflow.8B4F305C-811B-43B3-A0D6-0767A3919E2A/server.sh stderr output from native app net.deanishe.alfred.firefox: /bin/zsh: can't open input file: /Users/Ceyhun/Documents/Alfred.alfredpreferences/workflows/user.workflow.8B4F305C-811B-43B3-A0D6-0767A3919E2A/server.sh
  11. I was just replying to you that I do exactly the same thing as you do in the demo. But it still wasn't working. However you just updated your workflow to v1.0.2 and it works with no issues now. Thank you again for your interest.
  12. Thank you for your interest, I run v1.0.1 on safari, but after you reply I also tried it on chrome but still get the same debug output as before. [20:06:04.890] Go Home, Alfred[Hotkey] Processing complete [20:06:04.893] Go Home, Alfred[Hotkey] Passing output '' to Run Script [20:06:05.130] ERROR: Go Home, Alfred[Run Script] /Users/Ceyhun/Library/Caches/com.runningwithcrayons.Alfred/Workflow Scripts/A4D09E7C-9C73-47EC-9D5B-3D7D2483C0C4:261:264: script error: Expected end of line but found property. (-2741) [20:06:05.135] Go Home, Alfred[Run Script] Processing complete [20:06:05.136] Go Home, Alfred[Run Script] Passing output '' to Run Script [20:06:05.205] Go Home, Alfred[Run Script] Processing complete [20:06:05.207] Go Home, Alfred[Run Script] Passing output 'https:// ' to Run Script [20:06:05.421] ERROR: Go Home, Alfred[Run Script] /Users/Ceyhun/Library/Caches/com.runningwithcrayons.Alfred/Workflow Scripts/723F3EB5-EB57-4EA7-94E3-082C5D140D8E:327:337: script error: A property can’t go after this identifier. (-2740)
  13. Hello @Vinay W, I think it is useful but It doesn't work for me, I am on 10.15.4 Catalina and Alfred 4.0.9. You can find the debug output below. [18:05:44.281] Logging Started... [18:06:53.448] Logging Stopped. [18:07:06.138] Logging Started... [18:07:14.181] Go Home, Alfred[Hotkey] Processing complete [18:07:14.184] Go Home, Alfred[Hotkey] Passing output '' to Run Script [18:07:14.485] ERROR: Go Home, Alfred[Run Script] /Users/Ceyhun/Library/Caches/com.runningwithcrayons.Alfred/Workflow Scripts/5D846426-16B8-4DB6-A297-81C52F673BEF:261:264: script error: Expected end of line but found property. (-2741) [18:07:14.488] Go Home, Alfred[Run Script] Processing complete [18:07:14.489] Go Home, Alfred[Run Script] Passing output '' to Run Script [18:07:14.560] Go Home, Alfred[Run Script] Processing complete [18:07:14.564] Go Home, Alfred[Run Script] Passing output 'https:// ' to Run Script [18:07:14.829] ERROR: Go Home, Alfred[Run Script] /Users/Ceyhun/Library/Caches/com.runningwithcrayons.Alfred/Workflow Scripts/FECFC682-A50B-4127-96BA-DA0FF75FCED4:327:337: script error: A property can’t go after this identifier. (-2740)
  14. Nope I don't, this is actually why I did not try to edit your script and ask you if you know a different way to do it.
  15. Hello @deanishe, Is it doable for safari and keychain?
  16. Hello @vitor, It works perfectly, thanks for the workflow. I would like to ask you that is it possible to reset it with a keyword or a shortcut? Thank you for your workflows!
  17. When I mentioned office files, Microsoft office and apple's iwork apps were in my mind, although I know there are many others.
  18. I understand that, that is why I mentioned office files and the preview.app specifically.
  19. It doesn't actually have to be for all kind of files. If it could work for office files, pdfs or jpgs-pngs when they are opened in preview.app, it might still be very useful I think.
  20. Can it be done for not only a word file but any kind of file?
  21. Looks like you don't even need cmd lol. You only need to press backspace.
  22. You can delete them by pressing cmd-backspace.
  23. Totally understandable, thank you for your interest.
  24. Mojave 10.14.5. Alfred 4.0.3 You can also find the debug output in the screenshot.
×
×
  • Create New...