Jump to content

xilopaint

Member
  • Posts

    896
  • Joined

  • Last visited

  • Days Won

    24

Posts posted by xilopaint

  1. On 1/15/2023 at 2:12 PM, xilopaint said:

    Hey@giovanniI see you're using this fork of the Alfred-Workflow library in the workflows you ported to Python 3. There's an issue in this fork regarding the default_settings parameter of the Workflow class which doesn’t seem to work. You get a KeyError by running this code:

    from workflow import Workflow
    
    wf = Workflow(default_settings={"arg1": "value1"})
    print(wf.settings["arg1"])

     

    Have you ever faced this issue or have any idea on how to fix it? I have my own fork of deanishe's library which is being used by some people and I'm interested to fix this issue.

     

    @vitordo you have Python 2 installed? If so, could you check if this code works with deanishe's library?

  2. Hey@giovanniI see you're using this fork of the Alfred-Workflow library in the workflows you ported to Python 3. There's an issue in this fork regarding the default_settings parameter of the Workflow class which doesn’t seem to work. You get a KeyError by running this code:

    from workflow import Workflow
    
    wf = Workflow(default_settings={"arg1": "value1"})
    print(wf.settings["arg1"])

     

    Have you ever faced this issue or have any idea on how to fix it? I have my own fork of deanishe's library which is being used by some people and I'm interested to fix this issue.

  3. 14 hours ago, TomBenz said:

    It is extraction of pdf bookmarks into text and excel file with same filename with bookmark as suffix. I posted Python code for it in a separate thread and have been able to make it work via Alfred. When I am reading large technical pdf document, I extract bookmark into excel, allocate time to topics, exercises and then work on the document. I also take some notes if needed in excel file.

     

    Where's the code?

  4. 18 minutes ago, 2pilvic said:

    The flow stopped working for me and I don't know what could have happened. I reinstalled macOs and it hasn't worked since. The mistake is:

     

    ERROR: Alfred PDF Tools[Run Script] xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

     

    The /Library/Developer/CommandLineTools/usr/ folder only contains the “share” and “lib” folders

    I'd appreciate your help

     

    You just need to install Command Line Tools. Run this command in Terminal:

     

    xcode-select --install

  5. On 1/2/2023 at 8:32 AM, TomBenz said:

    @xilopaint Two questions on Alfred's PDF workflow:

     

    1. Can 'Optimize' option lead to pdf files with size bigger than original? I have used default resolution (i.e no input which leads to a file size bigger than the original). I will test it more if this is not accepted behaviour.

     

     

     

    It’s possible. The Optimize file action is intended to improve the appearance of low quality PDF files that are made from images (e.g. scanned documents). But I would say if the input PDF file has a higher resolution in comparison to the selected resolution it’s more likely that the output PDF will have a smaller size.

     

    On 1/2/2023 at 8:32 AM, TomBenz said:

    2. Is it possible to add 'extract bookmarks' from the selected pdf file into text file? Request you to consider this feature. Are there other workflows that can address this? 

     

    Could you explain further how the feature would work and why you need it? Would the text file be a simple .txt file?

  6. On 12/1/2022 at 3:37 AM, Sabry said:

    For some reason, I am unable to optimize pdf documents although Alfred's debugger does not indicate any problem. Below is the output. Would you be able to help? Many thanks in advance.

     

    [08:27:55.823] Alfred PDF Tools[File Action] Passing output '/Users/sabryeldeeb/Downloads/MBL Abha SEVEN/DESIGN REPORT/6ABHA09-ABHA-FC-DAE-GE-DEC-00001-B-ABHA IFC REPORT copy.pdf' to Arg and Vars
    [08:27:55.825] Alfred PDF Tools[Arg and Vars] Processing complete
    [08:27:55.826] Alfred PDF Tools[Arg and Vars] Passing output '' to Keyword
    [08:27:59.478] Alfred PDF Tools[Keyword] Processing complete
    [08:27:59.484] Alfred PDF Tools[Keyword] Passing output '100' to Replace
    [08:27:59.486] Alfred PDF Tools[Replace] Processing complete
    [08:27:59.487] Alfred PDF Tools[Replace] Passing output '100' to Run Script

     

    Sorry for the late response. Could you share the PDF file via PM? I don't have any issues with Optimize file action.

  7. On 12/15/2022 at 3:56 AM, cage.chung said:

    Hi, xilopaint

     

    Thanks for your feedback.  Could you give more information about What is workflow definition? As a microservices developer.  encode/decode/jwt/string case ects. is daily workload essential tools. That's why i create this workflow.

     

    "for workflow developers" sounds like to developer develop workflow? Do i miss understanding?

     

    Oh, I'm sorry. Now I see I got confused about the purpose of your workflow. It's not intended to provide tools just for workflow developers, but for developers in general. Anyway, I still think your sentence is not well worded, perhaps it should be better phrased as "A Swiss Army knife for developers". The way you wrote ("for developers for Alfred") sounds odd in English, at least for me.

  8. 57 minutes ago, xilopaint said:

    @vitordo you know where I can find 256px or larger icons of macOS versions? I can only find 240px images at apple.support.com. My plan is to replace all 128px images in my workflows with 256px ones.

     

    Never mind I just pushed an update with 256px images for macOS icons from 10.15 to 13 and used a 240px image just for 10.14 which I couldn't find a larger version.

  9. 3 minutes ago, vitor said:

     

    256px. When you add an icon to Alfred, it should be auto-resized.

     

     

    Definitely too small. I recognised the icon you were using for this one and went to get it again from System Information.

     

    Too small just for the Gallery or even for the workflow?

  10. 2 hours ago, vitor said:

    Thank you for the notice. Will be fixed soon.

     

    Thanks for the fix.

    Now we have the Gallery, what's the recommend size for the workflow icon? I've been using 128px for my workflows. Is that enough? I see you using 256px or even higher in some of your workflows.

  11. On 11/27/2022 at 9:50 AM, xilopaint said:

    Hey @vitor, just to let you know I removed OneUpdater and updated the icon. I haven't made a new release though, so the new changes will be available in a new release once the Gallery is launched. Should I commit a version bump now?

     

    @vitorthe Gallery shows the old workflow icon. Could you update?

  12. On 11/2/2022 at 12:33 PM, cage.chung said:

    A Swiss Army knife for developers for Alfred. 

     

    My English is far from great, but the description in the workflow and README would be more accurate and better worded if you replaced "for developers for Alfred" with "for workflow developers".

  13. 38 minutes ago, Benzi said:

    @vitor Hi! would you (or anyone else) be able to help and check if version 1.9 is suitable? I've updated it to use User Configs and tried to codesign it.


    Add the workflow file as a release asset. You don't need to do it in the repo itself.

×
×
  • Create New...