Jump to content

Faris Najem

Member
  • Posts

    29
  • Joined

  • Last visited

Posts posted by Faris Najem

  1. Hi everyone,

    When I copy text within WhatsApp desktop app, it doesn't get saved to Alfred's clipboard history, even though I can still paste it elsewhere, so, it's copying to the general macOS clipboard, but not to Alfred specifically.

    Has anyone else encountered this problem? Any suggestions for a fix would be very helpful.

    Thanks!

     

    MacBook Pro 16" m1pro, macOS Sonoma 14.4.1
    Alfred 5.5

    WhatsApp 24.8.83

  2. On 2/17/2024 at 5:02 AM, Alan He said:

    1. I have updated the workflow, have a try. 

    Hi, @Alan He,

    Thank you so much for this helpful workflow.

    I have a query regarding its functionality. Is there a method to prevent the screenshot from being saved to the clipboard, retaining only the OCR text?

    I attempted to disable the "Save to Clipboard" option within the "Interactive Screenshot" item, but it seems to result in an empty clipboard. Is there an alternative solution to achieve this?

     

    Thank you again.

     

  3. 4 hours ago, vitor said:

    Replace the contents of the script with the code below and try again.

    Thank you so much @vitor to your response.


    As you can see in the attached screenshot, I ran the new script (pasted over the old one) via Terminal several times, but encountered errors each time. Could you please provide any assistance?

     

    Thanks again.

     

    image.thumb.png.303232b546befb26b3a1ee945db8763b.png

  4. On 7/17/2021 at 1:14 AM, deanishe said:

    If something about my instructions isn't clear, then I'd be happy to clarify.

    Hi @deanishe

    Thank so much for your code.

     

    *** when I run it in Terminal I had this error message:
     line 89
        os.makedirs(dirpath, 0700)
                                            ^
    SyntaxError: leading zeros in decimal integer literals are not permitted; use an 0o prefix for octal integers

     

    *** To resolve it I used 0o prefix to be like that:
    os.makedirs(dirpath, 0o700)
     

    *** After I run the code again I had this error message:

    Traceback (most recent call last):

      File "/Users/farisal-mawwashi/Downloads/untitled folder/shortcuts2alfred (1).py", line 113, in <module>

        main()

      File "/Users/farisal-mawwashi/Downloads/untitled folder/shortcuts2alfred (1).py", line 106, in main

        shortcuts = load_shortcuts()

                             ^^^^^^^^^^^^^^^^

      File "/Users/farisal-mawwashi/Downloads/untitled folder/shortcuts2alfred (1).py", line 56, in load_shortcuts

        for row in reader:

    _csv.Error: iterator should return strings, not bytes (the file should be opened in text mode)

    *** The attached screenshot shows this.

    Please, How can I resolve the error?
    NOTE: I am not a programmer, and my knowledge is limited in this field, but I can follow the instructions to get the desired result.

     

    Thank you so much.

     

    MacBook Pro 16” m1pro 2021
    macOS Sonoma 14.4.1 

    Alfred 5.5

     

     

    image.thumb.png.fb23e38c783ee1e8b19bdca831d72045.png

  5. Hi,
    I used This so nice workflow for months, but now it doesn't work in My MacBook pro (m1pro, Sonoma os). Any help, please?
    This is the debug report:

    [19:47:30.080] Default App[Script Filter] Processing complete
    [19:47:30.085] Default App[Script Filter] Passing output 'PDF Studio Viewer 2023' to Arg and Vars
    [19:47:30.087] Default App[Arg and Vars] Processing complete
    [19:47:30.088] Default App[Arg and Vars] Passing output 'PDF Studio Viewer 2023=.pdf' to Run Script
    [19:47:30.246] ERROR: Default App[Run Script] Traceback (most recent call last):
      File "/Users/farisal-mawwashi/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.60FD7BEC-4973-4B4C-A1F1-6638DA93FADC/change.py", line 37, in <module>
        resp = duti(app_id, ext)
               ^^^^^^^^^^^^^^^^^
      File "/Users/farisal-mawwashi/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.60FD7BEC-4973-4B4C-A1F1-6638DA93FADC/change.py", line 28, in duti
        resp = os.system(f"{d_path} -s " + appid + " " + ext + " all")
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ValueError: embedded null byte
    [19:47:30.260] Default App[Run Script] Processing complete
    [19:47:30.261] Default App[Run Script] Passing output '' to Debug
    [19:47:30.262] Default App[Debug] '', {
      ext = ".pdf"
    }
    [19:47:30.264] Default App[Debug] Processing complete
    [19:47:30.265] Default App[Debug] Passing output '' to Post Notification

  6. 2 hours ago, giovanni said:

    @Faris Najem I tested the use of Eastern Arabic numerals and it seems to work fine both in the Alfred window and in the pasted reference. Could you check if you see the same problem in other fields (for example, add an Arabic numeric character to volume or author name)? 

    @giovanni It seems that the problem is only in the "date" field, here you find results for both Zotero and ZotHero:

    By Zotero app:
    Benedetto Croce, Aesthetic as Science of Expression and General Linguistic, trans. Douglas Ainslie, ٢٢, vol. ١ (London: Macmillan, ١٩٩٩).

    By ZotHero workflow:
    Benedetto Croce, Aesthetic as Science of Expression and General Linguistic, trans. Douglas Ainslie, ٢٢, vol. ١ (London: Macmillan, n.d.).

     

    Thank you again.

     

  7. 8 hours ago, giovanni said:

    are you referring to Zotero (the reference management software), or Zothero (the Alfred workflow)? Are you able to enter Arabic numerals in Zotero? If not, the problem is with Zotero. 

    Thank you @giovanni.

    I'm talking about the way that the workflow ZotHero is dealing with the Arabic numerals which are used in the app Zotero. If I use Zotero itself to generate a citation has these numerals, then the result is ok, but if I use ZotHero to generate the same citation then the result is like what I talked about in the previous post. So, I think the problem is in the relationship between ZotHero and the Arabic numerals.

     

    Thank you again for your response and help.

     

  8. 19 hours ago, giovanni said:

    @Faris Najem have you installed Better BibTeX in Zotero?

    https://retorque.re/zotero-better-bibtex/installation/

     

    Hi @giovanni,

    Thank you so much for your helpful answer. Now, after I installed Better BibTeX, the resources are starting to show up. But, please, I just have a problem with the the Arabic-Indic numerals (١٢٣٤٥٦٧٨٩٠). When I use them in any field, the field appears empty. As in the following result:

     

    Frauke Berndt and Anthony Mahler, Facing Poetry: Alexander Gottlieb Baumgarten's Theory of Literature (Berlin: De Gruyter, n.d.).

     

    "n.d" means (No date) when in fact I put the publishing year in the usual field for that, but in the language. I chose an English resource (with these numerals) just to clarify because the problem I have with Arab resources, with which I use these numbers.

    The attached screenshot is the Citation as I put in Zotero.

    I'll be very thankful for the help.

    (Note: The problem gets with all patterns, and in this example has used Chicago style, 17th, full note).

    Thank you again.

     

    Screenshot 2023-07-22 at 2.32.42 PM.png

  9. 33 minutes ago, vitor said:

    @Faris Najem What you’re experiencing is the removal of Python 2 from macOS. Use the fork by @giovanni.

    @vitorThank you so much for your quick response. I did download the latest version as you refer to it. Now I have this error:


    FileNotFoundError: [Errno 2] No such file or directory: '/Users/farisal-mawwashi/Zotero/better-bibtex.sqlite'
    14:36:18 workflow.py:2116 INFO     for assistance, see: https://github.com/giovannicoppola/zothero/issues
    14:36:18 workflow.py:2136 DEBUG    ---------- finished in 0.028s ----------
    [14:36:18.523] ZotHero[Script Filter] {
      "items": [
        {
          "title": "Error in workflow 'ZotHero'",
          "subtitle": "[Errno 2] No such file or directory: '/Users/farisal-mawwashi/Zotero/better-bibtex.sqlite'",
          "valid": false,
          "icon": {
            "path": "/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/AlertStopIcon.icns"
          }
        }
      ]
    }

  10. On 7/8/2018 at 2:45 PM, deanishe said:

    icon.png.a71a60eae67f26d26739fa072abe6e69.png

     

    ZotHero


    Rapidly search your Zotero database and copy citations.


    https://github.com/deanishe/zothero


    Features

    • Perform full-text search across your Zotero database, including only searching specific fields
    • Copy citations using any CSL style you have installed in Zotero
    • Copy citations either in citation/note style or bibliography style
    • Copy citations in any locale supported by CSL
    • Citations are copied in multiple formats, so the right data are automatically pasted into the application you're using
    • Trigger search while you type using the Snippet Trigger (you must assign the snippet keyword yourself in Alfred Preferences)

     


    Download & installation


    Download the ZotHero-XYZ.alfredworkflow file from GitHub releases, and double-click the downloaded file to install.


    Basic usage


    These are the workflow's default keywords:

    • zot <query> — Search your Zotero database (common fields).
    • zot:[<query>] — Search a specific field.
    • zotconf [<query>] — View and edit workflow configuration.

     


    See the README on GitHub for full instructions.


    Pasting citations


    When you copy a citation, ZotHero puts both HTML and rich text (RTF) representations on the pasteboard. That way, when you paste a citation into an application like Word, the formatted text will be pasted, but when you paste into a text/Markdown document, the HTML will be pasted.


    Licence & thanks


    The workflow is released under the MIT licence.


    The Zorro icon was created by Dan Lowenstein.


    Citations are generated by citeproc-js (AGPLv3).


    Workflow stuff is taken care of by Alfred-Workflow (also MIT licence).

    Hi @deanishe,

    Thank you so much for this great workflow. I have a problem: since I used now new Mac, the work flow doesn't work. I putted the directory of Zotero data in the configuration sheet, but it still not working> this is the debugger report:

     

    [14:12:32.101] ZotHero[Script Filter] Queuing argument 'poetry'
    [14:12:32.110] ZotHero[Script Filter] Script with argv 'poetry' finished
    [14:12:32.111] ERROR: ZotHero[Script Filter] Code 126:~/Library/Caches/com.runningwithcrayons.Alfred/Workflow Scripts/93AF91FC-0AA8-4B1A-B48E-9995F722770D: ./zh: /usr/bin/python: bad interpreter: No such file or directory

     

    can you help?

    Thank you so much.

  11. 5 hours ago, vitor said:

    I’m trying to help you, but I can’t do that if you don’t provide a diagnostic, as pointed out in the last three replies. I have linked to the post that teaches how to do it. It has to be done in the most current version of the workflow (2023.8, as of this post).


    But your issue is caused by the 1Password command-line, that’s where the error is coming from, so ultimately you’ll have to end up contacting their support.

     

    Ok, I will ask them to help, Thank you so much.

  12. 12 hours ago, Faris Najem said:

     

    Now it works!!
    I followed the link you put in your first answer, and disabled biometric unlock on the CLI tool (in the 1Password app → Preferences → Developer). Now everything works normally.
    Thank you very much.💐

    A new addition to what happened later:

    After the workflow successfully showcased the items of 1Password, I discovered the following:
    1. Autofill is not working.
    2."Copy username" does not work.
    3. "Copy Password" does not work.

    4. "Copy OTP" does not work.

     

    I would like to add that the releases that are currently working in the workflow (only displaying the items without any other work) are the  2022.19 release and earlier... As for the releases that come after 2022.19, they do not work in the first place, that is, the first problem that occurs in them I talked about it in my first post a few days ago.

    For the 2022.19 release, I'm showing below debugger report, when I tried to copy a password:

    [12:53:02.146] Logging Started...
    [12:53:28.097] ERROR: 1Password[Run Script] panic: runtime error: index out of range [0] with length 0

    goroutine 1 [running]:
    github.com/elastic/go-sysinfo/providers/darwin.kern_procargs(0xc000376098?, 0xc00034a8c0)
        /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/vendor/github.com/elastic/go-sysinfo/providers/darwin/process_darwin.go:214 +0x62f
    github.com/elastic/go-sysinfo/providers/darwin.(*process).Info(0xc00034a8c0)
        /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/vendor/github.com/elastic/go-sysinfo/providers/darwin/process_darwin.go:106 +0x1b4
    go.1password.io/op/core/procinfo.process.Executable(...)
        /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/core/procinfo/process_darwin.go:37
    go.1password.io/op/core/procinfo.findNearestChildProcessInfo({0x100d52a50?, 0xc000343c40?}, 0x1)
        /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/core/procinfo/session_info.go:47 +0x48
    go.1password.io/op/core/procinfo.getSessionInfo()
        /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/core/procinfo/session_info_unix.go:29 +0x12f
    go.1password.io/op/core/procinfo.CurrentSessionInfo(...)
        /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/core/procinfo/session_info.go:21
    go.1password.io/op/op-cli/desktopapp/ipc.clientInfo()
        /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/op-cli/desktopapp/ipc/ipc_darwin.go:77 +0x1e
    go.1password.io/op/op-cli/desktopapp/ipc.Connect({0x100d520e8, 0xc0003f0d80}, {{0x100d4f640, 0xc000343470}, 0x7, {0x0, 0x0}, {0xc0000df200, 0x1, 0x1f4}, ...})
        /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/op-cli/desktopapp/ipc/connection.go:61 +0xa5
    go.1password.io/op/op-cli/desktopapp.connect({0x100d520b0?, 0xc000042060?})
        /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/op-cli/desktopapp/desktopapp.go:328 +0x9a
    go.1password.io/op/op-cli/desktopapp.ListAccounts()
        /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/op-cli/desktopapp/desktopapp.go:93 +0x3e
    go.1password.io/op/op-cli/command.(*accountListCommand).Run(0xc000264570)
        /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/op-cli/command/account_list.go:47 +0x51
    go.1password.io/op/op-cli/command.Bind.func3(0xc0003bdb80?, {0xc0003ed620?, 0x0?, 0x3?})
        /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/op-cli/command/command.go:71 +0x4e
    github.com/spf13/cobra.(*Command).execute(0xc0003bdb80, {0xc0003ed5f0, 0x3, 0x3})
        /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/vendor/github.com/spf13/cobra/command.go:844 +0x67c
    github.com/spf13/cobra.(*Command).ExecuteC(0x1013f0e60)
        /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/vendor/github.com/spf13/cobra/command.go:952 +0x39d
    go.1password.io/op/op-cli/command.Execute()
        /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/op-cli/command/root.go:331 +0x71
    main.main()
        /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/op-cli/main.go:15 +0x31
    ./1password.js: execution error: Error: SyntaxError: JSON Parse error: Unexpected EOF (-2700)

     

    --------------------------------------------------------

    Thanks for any help.

  13. On 6/17/2023 at 3:02 PM, Stephen_C said:

    When you post with a problem about a specific workflow please post in the relevant thread for that workflow. That way the developer will see your post more easily.

     

    Please also post the result of the debugger when running the workflow.

     

    Stephen

     

    On 6/17/2023 at 3:02 PM, Stephen_C said:

    When you post with a problem about a specific workflow please post in the relevant thread for that workflow. That way the developer will see your post more easily.

     

    Please also post the result of the debugger when running the workflow.

     

    Stephen

     

    Hi Stephen,

     

    I'm sorry I was a bit off work, so I couldn't see your response that I thank you for.
    This is result of the debugger:


     

    [10:03:05.152] Logging Started...
    [10:03:20.602] STDERR: 1Password[Run Script] panic: runtime error: index out of range [0] with length 0

    goroutine 1 [running]:
    github.com/elastic/go-sysinfo/providers/darwin.kern_procargs(0xc0004c4098?, 0xc00007e0f0)
        /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/vendor/github.com/elastic/go-sysinfo/providers/darwin/process_darwin.go:214 +0x62f
    github.com/elastic/go-sysinfo/providers/darwin.(*process).Info(0xc00007e0f0)
        /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/vendor/github.com/elastic/go-sysinfo/providers/darwin/process_darwin.go:106 +0x1b4
    go.1password.io/op/core/procinfo.process.Executable(...)
        /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/core/procinfo/process_darwin.go:37
    go.1password.io/op/core/procinfo.findNearestChildProcessInfo({0x100d64a50?, 0xc00007a3a0?}, 0x1)
        /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/core/procinfo/session_info.go:47 +0x48
    go.1password.io/op/core/procinfo.getSessionInfo()
        /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/core/procinfo/session_info_unix.go:29 +0x12f
    go.1password.io/op/core/procinfo.CurrentSessionInfo(...)
        /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/core/procinfo/session_info.go:21
    go.1password.io/op/op-cli/desktopapp/ipc.clientInfo()
        /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/op-cli/desktopapp/ipc/ipc_darwin.go:77 +0x1e
    go.1password.io/op/op-cli/desktopapp/ipc.Connect({0x100d640e8, 0xc000469440}, {{0x100d61500, 0xc0003c0f60}, 0x7, {0x0, 0x0}, {0xc000320c00, 0x1, 0x1f4}, ...})
        /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/op-cli/desktopapp/ipc/connection.go:61 +0xa5
    go.1password.io/op/op-cli/desktopapp.connect({0x100d640b0?, 0xc00018e008?})
        /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/op-cli/desktopapp/desktopapp.go:328 +0x9a
    go.1password.io/op/op-cli/desktopapp.ListAccounts()
        /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/op-cli/desktopapp/desktopapp.go:93 +0x3e
    go.1password.io/op/op-cli/command.(*accountListCommand).Run(0xc00019ee10)
        /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/op-cli/command/account_list.go:47 +0x51
    go.1password.io/op/op-cli/command.Bind.func3(0xc000435080?, {0xc000463890?, 0x0?, 0x3?})
        /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/op-cli/command/command.go:71 +0x4e
    github.com/spf13/cobra.(*Command).execute(0xc000435080, {0xc000463860, 0x3, 0x3})
        /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/vendor/github.com/spf13/cobra/command.go:844 +0x67c
    github.com/spf13/cobra.(*Command).ExecuteC(0x101408ea0)
        /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/vendor/github.com/spf13/cobra/command.go:952 +0x39d
    go.1password.io/op/op-cli/command.Execute()
        /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/op-cli/command/root.go:331 +0x71
    main.main()
        /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/op-cli/main.go:15 +0x31
    ./1password.js: execution error: Error: SyntaxError: JSON Parse error: Unexpected EOF (-2700)
    panic: runtime error: index out of range [0] with length 0

    goroutine 1 [running]:
    github.com/elastic/go-sysinfo/providers/darwin.kern_procargs(0xc0000a3e00?, 0xc000109540)
        /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/vendor/github.com/elastic/go-sysinfo/providers/darwin/process_darwin.go:214 +0x62f
    github.com/elastic/go-sysinfo/providers/darwin.(*process).Info(0xc000109540)
        /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/vendor/github.com/elastic/go-sysinfo/providers/darwin/process_darwin.go:106 +0x1b4
    go.1password.io/op/core/procinfo.process.Executable(...)
        /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/core/procinfo/process_darwin.go:37
    go.1password.io/op/core/procinfo.findNearestChildProcessInfo({0x100d64a50?, 0xc0001fc7f0?}, 0x1)
        /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/core/procinfo/session_info.go:47 +0x48
    go.1password.io/op/core/procinfo.getSessionInfo()
        /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/core/procinfo/session_info_unix.go:29 +0x12f
    go.1password.io/op/core/procinfo.CurrentSessionInfo(...)
        /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/core/procinfo/session_info.go:21
    go.1password.io/op/op-cli/desktopapp/ipc.clientInfo()
        /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/op-cli/desktopapp/ipc/ipc_darwin.go:77 +0x1e
    go.1password.io/op/op-cli/desktopapp/ipc.Connect({0x100d640e8, 0xc0004f4fc0}, {{0x100d61500, 0xc000390f80}, 0x7, {0x0, 0x0}, {0xc0002f8c00, 0x1, 0x1f4}, ...})
        /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/op-cli/desktopapp/ipc/connection.go:61 +0xa5
    go.1password.io/op/op-cli/desktopapp.connect({0x100d640b0?, 0xc000126008?})
        /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/op-cli/desktopapp/desktopapp.go:328 +0x9a
    go.1password.io/op/op-cli/desktopapp.ListAccounts()
        /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/op-cli/desktopapp/desktopapp.go:93 +0x3e
    go.1password.io/op/op-cli/command.filterSystemAuthAccounts({0x0, 0x0}, {0x0, 0x0})
        /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/op-cli/command/signin.go:295 +0x4e
    go.1password.io/op/op-cli/command.selectSystemAuthAccount({0x100d69b30, 0x101448588}, {0x0, 0x0}, {0x0?, 0x1b?})
        /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/op-cli/command/signin.go:336 +0x85
    go.1password.io/op/op-cli/command.SignInWithSystemAuth({0x100d69b30, 0x101448588}, {0x0?, 0x60?})
        /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/op-cli/command/signin.go:215 +0x85
    go.1password.io/op/op-cli/command.(*signinCommand).Run(0xc000398300)
        /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/op-cli/command/signin.go:153 +0x534
    go.1password.io/op/op-cli/command.Bind.func3(0xc000327080?, {0xc0000a7a40?, 0x0?, 0x2?})
        /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/op-cli/command/command.go:71 +0x4e
    github.com/spf13/cobra.(*Command).execute(0xc000327080, {0xc0000a7a20, 0x2, 0x2})
        /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/vendor/github.com/spf13/cobra/command.go:844 +0x67c
    github.com/spf13/cobra.(*Command).ExecuteC(0x101408ea0)
        /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/vendor/github.com/spf13/cobra/command.go:952 +0x39d
    go.1password.io/op/op-cli/command.Execute()
        /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/op-cli/command/root.go:331 +0x71
    main.main()
        /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/op-cli/main.go:15 +0x31
    panic: runtime error: index out of range [0] with length 0

    goroutine 1 [running]:
    github.com/elastic/go-sysinfo/providers/darwin.kern_procargs(0xc00042eb18?, 0xc0003b92c0)
        /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/vendor/github.com/elastic/go-sysinfo/providers/darwin/process_darwin.go:214 +0x62f
    github.com/elastic/go-sysinfo/providers/darwin.(*process).Info(0xc0003b92c0)
        /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/vendor/github.com/elastic/go-sysinfo/providers/darwin/process_darwin.go:106 +0x1b4
    go.1password.io/op/core/procinfo.process.Executable(...)
        /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/core/procinfo/process_darwin.go:37
    go.1password.io/op/core/procinfo.findNearestChildProcessInfo({0x100d64a50?, 0xc0003bee80?}, 0x1)
        /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/core/procinfo/session_info.go:47 +0x48
    go.1password.io/op/core/procinfo.getSessionInfo()
        /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/core/procinfo/session_info_unix.go:29 +0x12f
    go.1password.io/op/core/procinfo.CurrentSessionInfo(...)
        /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/core/procinfo/session_info.go:21
    go.1password.io/op/op-cli/desktopapp/ipc.clientInfo()
        /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/op-cli/desktopapp/ipc/ipc_darwin.go:77 +0x1e
    go.1password.io/op/op-cli/desktopapp/ipc.Connect({0x100d640e8, 0xc0001242a0}, {{0x100d61500, 0xc0003bef70}, 0x7, {0x0, 0x0}, {0xc00031ec00, 0x1, 0x1f4}, ...})
        /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/op-cli/desktopapp/ipc/connection.go:61 +0xa5
    go.1password.io/op/op-cli/desktopapp.connect({0x100d640b0?, 0xc00018e008?})
        /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/op-cli/desktopapp/desktopapp.go:328 +0x9a
    go.1password.io/op/op-cli/desktopapp.ListAccounts()
        /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/op-cli/desktopapp/desktopapp.go:93 +0x3e
    go.1password.io/op/op-cli/command.(*accountListCommand).Run(0xc0000124e0)
        /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/op-cli/command/account_list.go:47 +0x51
    go.1password.io/op/op-cli/command.Bind.func3(0xc000461b80?, {0xc000465cb0?, 0x0?, 0x3?})
        /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/op-cli/command/command.go:71 +0x4e
    github.com/spf13/cobra.(*Command).execute(0xc000461b80, {0xc000465c80, 0x3, 0x3})
        /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/vendor/github.com/spf13/cobra/command.go:844 +0x67c
    github.com/spf13/cobra.(*Command).ExecuteC(0x101408ea0)
        /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/vendor/github.com/spf13/cobra/command.go:952 +0x39d
    go.1password.io/op/op-cli/command.Execute()
        /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/op-cli/command/root.go:331 +0x71
    main.main()
        /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/op-cli/main.go:15 +0x31
    ./1password.js: execution error: Error: SyntaxError: JSON Parse error: Unexpected EOF (-2700)
    /Users/farisal-mawwashi/Library/Caches/com.runningwithcrayons.Alfred/Workflow Scripts/2328B11F-82A9-480E-BB75-3558447A426D:13: no such file or directory: /Users/farisal-mawwashi/Library/Application Support/Alfred/Workflow Data/com.alfredapp.vitor.1password/items.json

     

  14. Hi every one,

    Since I started working on Alfred, I have repeatedly tried to run the 1Password workflow, but it never works. It just displays some options, for example, in "1Password Extras" it shows "manage vaults", and when I try to select one, it asks me to sign into my account, and after I attempt to sign in, everything disappears. The attached gif below demonstrates the problem. That's exactly what happens in other options.

     

    I have done everything I know to run the workflow. For example, I installed the 1Password CLI and configured it in the 1Password settings as shown in the attached image below.

     

    Can you please help?

     

    macOS Catalina 10.15.7

    Alfred 5.1.1

    1Password 8.10.7

    Screen Recording 2023-06-17 at 1.24.47 PM.gif

    Screen Shot 2023-06-17 at 2.43.34 PM.png

  15. On 7/8/2018 at 2:45 PM, deanishe said:

    icon.png.a71a60eae67f26d26739fa072abe6e69.png

     

    ZotHero


    Rapidly search your Zotero database and copy citations.


    https://github.com/deanishe/zothero


    Features

    • Perform full-text search across your Zotero database, including only searching specific fields
    • Copy citations using any CSL style you have installed in Zotero
    • Copy citations either in citation/note style or bibliography style
    • Copy citations in any locale supported by CSL
    • Citations are copied in multiple formats, so the right data are automatically pasted into the application you're using
    • Trigger search while you type using the Snippet Trigger (you must assign the snippet keyword yourself in Alfred Preferences)

     


    Download & installation


    Download the ZotHero-XYZ.alfredworkflow file from GitHub releases, and double-click the downloaded file to install.


    Basic usage


    These are the workflow's default keywords:

    • zot <query> — Search your Zotero database (common fields).
    • zot:[<query>] — Search a specific field.
    • zotconf [<query>] — View and edit workflow configuration.

     


    See the README on GitHub for full instructions.


    Pasting citations


    When you copy a citation, ZotHero puts both HTML and rich text (RTF) representations on the pasteboard. That way, when you paste a citation into an application like Word, the formatted text will be pasted, but when you paste into a text/Markdown document, the HTML will be pasted.


    Licence & thanks


    The workflow is released under the MIT licence.


    The Zorro icon was created by Dan Lowenstein.


    Citations are generated by citeproc-js (AGPLv3).


    Workflow stuff is taken care of by Alfred-Workflow (also MIT licence).

     

    Great job! It will help me very much in my academic work. But, please, I have a question: Is there a way to fill Zotero fields from within the Alfred app? Thank you very much.

  16. On 3/2/2023 at 7:27 PM, zeitlings said:

    Alfred OCR

    I noticed that Apple's Vision framework finally produces some usable results.

    This means: No external dependencies are required to perform the OCR.

     

    Download On Github

     


      ocr.png.065f1bf3ffaeba1388e3dcdf944420f0.png Alfred OCR Light

     

    The workflow allows you to copy text from images using optical character recognition.

    Take a snapshot with your mouse or trackpad to automatically copy the recognized text to the clipboard. 

     


     ocr+.png  Alfred OCR+

     

    The workflow allows you to copy text from images, or to convert PDF files into searchable PDF documents
    using optical character recognition, and to apply compression to PDF documents.

     

    1 / Snapshot
    Take a snapshot with your mouse or trackpad to automatically copy the recognized text to the clipboard. 

    • Default shortcut: ⌘+⇧+6 
    • Default keyword: ocr

     

    2 / PDF Document

    • To convert a PDF into a searchable PDF document, pass it to the workflow’s Universal Action
      • To compress the resulting PDF, pass the source document on while pressing the ⌘+⇧ keys.
      • To open the resulting PDF, pass the source document on while pressing the ⌥+⇧ keys.
      • To force the replacement of a source document, pass it on while pressing the ⌥+⌘ keys.
    • To compress a PDF without performing OCR, pass it to the Compress PDF Document File Action.
    • To view the progress tracker, re-enable the workflow with the Keyword (default: ocr).

    preview_ocr1.png

     preview_ocr2.png

     

    Configuration

    To open the OCR Workflow Configuration, type the keyword preceeded by a colon (default: ocr).

    preview_ocr3.png

     

    Languages

    Specify the languages you want the OCR process to consider by adding the appropriate RFC-5646 language tag. The following languages (and regions) are currently supported: en-US, fr-FR, it-IT, de-DE, es-ES, pt-BR, zh-Hans, zh-Hant, yue-Hans, yue-Hant, ko-KR, ja-JA, ru-RU, uk-UA


    Explanations:

    • en-US: (English as used in the United States)
    • de-DE: (German as used in Germany)
    • fr-FR: (French as used in France)
    • it-IT: (Italian as used in Italy)
    • es-ES: (Spanish as used in Spain)
    • pt-BR: (Portuguese as used in Brazil)
    • ko-KR: (Korean as used in South Korea)
    • uk-UA: (Ukrainian as used in Ukraine)
    • ja-JA: (Japanese as used in Japan)
    • ru-RU: (Russian as used in Russia)
    • yue-Hant: (Traditional Cantonese)
    • yue-Hans: (Simplified Cantonese)
    • zh-Hant: (Traditional Chinese)
    • zh-Hans: (Simplified Chinese)

     


    Change Log

     

    v1.3.0 (OCR+)

    • Added PDF compression
    • Added a keyword for quick access to the workflow configuration (Alfred 5.1+)
    • Added Universal Action modifier option to apply compression to PDFs (⇧⌘)
    • Added Universal Action modifier option to open converted PDFs in the default application (⌥⇧)
    • Added a configuration option to open converted PDFs in the default application
    • Added a configuration option to specify how text should be joined when taking a snapshot
    • Added a File Action to compress PDF documents
    • Changed the modifier keys to replace a PDF and added noticeable visual cues (⌥⌘)
    • Changed the way an export strategy is specified by using a pop-up selection box
    • Improved performance

     

    v1.2.3 (OCR+)

    • Fixed an error thrown due to missing workflow cache directory
    • Fixed snapshot tasks queuing up if they are started before the previous task has finished
    • Added explicit opt-out of Snapshot tasks while PDF conversions are running

    v1.2.2 (OCR+)

    • Fixed low contrast output images produced for some PDF documents
    • Added progress tracker for the document recognition process
    • Added three options to handle document output: export to location, copy to same location and replace. Priority behavior: Replace > Copy > Export.
    • Added new icons
    • Improved output file size for PDF documents that do not already contain text

     


    v1.1.0 (OCR Light)

    • Updated configuration and documentation
    • Added new icon

     

    Hi zeitlings, could you, please, add an Arabic OCR? it will help me so much. 💐

  17. 12 hours ago, xilopaint said:

    @Faris Najem

     

    You need to post the Workflow Debugger output.

    This is the results:

    [02:28:08.359] Logging Started...
    [02:28:24.159] YouTube Search[Script Filter] Queuing argument 'm'
    [02:28:24.185] YouTube Search[Script Filter] Script with argv 'm' finished
    [02:28:24.190] ERROR: YouTube Search[Script Filter] Code 134: dyld: Symbol not found: _$s10Foundation12URLQueryItemV4name5valueACSSh_SSSghtcfC
      Referenced from: /Users/myname/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.B9A7A6EE-6772-47C0-B355-7B4995469646/./ytsearch (which was built for Mac OS X 13.3)
      Expected in: /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation

×
×
  • Create New...