Jump to content

JJJJ

Member
  • Posts

    45
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

JJJJ's Achievements

Member

Member (4/5)

3

Reputation

  1. Hello, I am planning to try Typinator for snippet expansions. Is there an easy way to import Alfred snippets to Typinator?
  2. It works for me with no issues. Thanks for the workflow.
  3. Thank you for the solution to use it for different browsers. I have tried your workflow first but it didn't work for me. We have discussed it on your topic and couldn't find a solution. I would like to try it again for Firefox history if you release an update.
  4. Yes it is fast when Firefox is disabled but how do I exclude it only from the history search? It seems like if I value it to False, then It doesn't search for bookmarks too. The main reason I use the workflow is to use it on Firefox. But I would like to know if I can use bm and bh for different browsers since bh is not really usable for FF.
  5. Thank you for your help and the workflow. It works very well now. BM search is very fast and seems reliable. But history search is pretty slow, it takes almost 10 sec to give some results. Is it expected? I think it uses python 3.8.2 this time as I understand from debugger output. [16:41:04.090] Logging Started... [16:41:35.225] Firefox&Chromium Bookmarks and History[Script Filter] Queuing argument 'test' [16:41:43.714] Firefox&Chromium Bookmarks and History[Script Filter] Script with argv 'test' finished [16:41:43.727] STDERR: Firefox&Chromium Bookmarks and History[Script Filter] PYTHON VERSION: 3.8.2 (default, Sep 24 2020, 19:37:08) [Clang 12.0.0 (clang-1200.0.32.21)] /Users/Ceyhun/Library/Application Support/Firefox/Profiles/xz1shlht.default-release/places.sqlite → found select DISTINCT url, title, visit_count FROM moz_places JOIN moz_historyvisits WHERE title != '' order by last_visit_date DESC LIMIT 500; [16:41:43.732] Firefox&Chromium Bookmarks and History[Script Filter] { "items": [ { "title": "Decentraleyes | Testing Utility", "subtitle": "(Visits: 61) https://decentraleyes.org/test/", "arg": "https://decentraleyes.org/test/", "quicklookurl": "https://decentraleyes.org/test/" }, { "title": "LocalCDN", "subtitle": "(Visits: 5) https://www.localcdn.org/test/cspcheck", "arg": "https://www.localcdn.org/test/cspcheck", "quicklookurl": "https://www.localcdn.org/test/cspcheck" } ] }
  6. Hello, Thank you for the workflow. It look very useful and supports many browsers. I would really like to use it for Firefox bookmarks and history but It doesn't work for me. Not only for Firefox but also for Chrome. I am on 10.15.7 Catalina and Alfred 4.2.1. You can find the debugger output below. [13:48:11.784] Chromium&Firefox Bookmarks and History[Script Filter] Queuing argument 'test' [13:48:11.960] Chromium&Firefox Bookmarks and History[Script Filter] Script with argv 'test' finished [13:48:11.965] ERROR: Chromium&Firefox Bookmarks and History[Script Filter] Code 1: Traceback (most recent call last): File "/Users/Ceyhun/Documents/Alfred.alfredpreferences/workflows/user.workflow.FBBADA4A-C051-42F1-B3CF-340DFF384FCB/chrom_bookmarks.py", line 12, in <module> from Alfred3 import Items as Items File "/Users/Ceyhun/Documents/Alfred.alfredpreferences/workflows/user.workflow.FBBADA4A-C051-42F1-B3CF-340DFF384FCB/Alfred3.py", line 7, in <module> from plistlib import readPlist, writePlist ImportError: cannot import name 'readPlist' from 'plistlib' (/usr/local/Cellar/python@3.9/3.9.0_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/plistlib.py) [13:48:19.497] Chromium&Firefox Bookmarks and History[Script Filter] Queuing argument 'test' [13:48:19.652] Chromium&Firefox Bookmarks and History[Script Filter] Script with argv 'test' finished [13:48:19.657] ERROR: Chromium&Firefox Bookmarks and History[Script Filter] Code 1: Traceback (most recent call last): File "/Users/Ceyhun/Documents/Alfred.alfredpreferences/workflows/user.workflow.FBBADA4A-C051-42F1-B3CF-340DFF384FCB/chrom_history.py", line 12, in <module> from Alfred3 import Items as Items File "/Users/Ceyhun/Documents/Alfred.alfredpreferences/workflows/user.workflow.FBBADA4A-C051-42F1-B3CF-340DFF384FCB/Alfred3.py", line 7, in <module> from plistlib import readPlist, writePlist ImportError: cannot import name 'readPlist' from 'plistlib' (/usr/local/Cellar/python@3.9/3.9.0_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/plistlib.py)
  7. Thank you for the detailed explanation. I just wanted to be sure if it works as expected or not. I gave full disk access to python as you said by drag and drop python into the full disk access window in Security&Privacy in System Preferences. I tried it for python3 for the first time but the error was about python 2.7 so tried it with 2.7 and then it worked. You can find the path of the file below. /System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7
  8. 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.
  9. 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
  10. 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
  11. 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.
  12. 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
  13. 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
  14. 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 %
  15. 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"
×
×
  • Create New...