Jump to content

Alan He

Member
  • Posts

    341
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by Alan He

  1. 1 hour ago, vitor said:

    You don’t need to ping me every time. I look at every post in this subforum and will get to everything. There are others also waiting, please be patient.

     

    ok, got it.

  2. On 3/22/2023 at 9:18 PM, vitor said:

    No idea. At first glance it’s weird because they seem to still be quite active on GitHub and technically they don’t even need to make a new binary, just tag a new release (because Homebrew then takes care of the compilation). So theoretically this could be solved from a phone in under a minute.


    Maybe they missed that thread or no longer want to work on the project. It would be nice to have the update but ultimately it’s an open-source project released for free in (presumably) the author’s spare time, so it’s their choice.


    Someone could fork it and then submit the fork to Homebrew, though it would require people using that and there are still other open issues.

     

    @vitor

     

    I solved it by hosting both the x86 and arm versions directly in the workflow, so it doesn't rely on brew anymore. Fork submission is theoretically possible, but the issue is that there is still review, after all it's just a fork and not a second development.
     
     
    1. Can you see if this is ok? Currently, the downside is that an x86 user downloading the workflow contains unnecessary arm program files, but the size overhead is still acceptable for now. 2. I don't have an M1 Mac on hand to test, I can only rely on user feedback from the repo that it is usable.
     
    I have updated the workflow and dropped the brew dependency.

     

     

     
    image.png.4366ae571f0150d27683b7959527696c.png

     

     

  3. 19 hours ago, vitor said:

    There are two Call External Trigger not doing anything. And the workflow outright fails for me:

     

    brightness: failed to get brightness of display 0x1 (error -536870201)
    
    Parse error: bad token
        <stdin>:1
    
    brightness: failed to set brightness of display 0x1 (error -536870201)

     

     

    1. I have deleted unused call external trigger.

    2. can you share me output on the terminal and system info?

     

    command:  brightness -l | grep -o -E 'brightness.*([0-9]+(\.[0-9]+)?)'| tr -d 'brightness '

     

     

     

    image.png

  4. 20 hours ago, vitor said:

    @Alan He Your latest update to this workflow cannot go in the Gallery. The pinned post specifies that workflows cannot download extra software on their own, including with brew install.


    If you have an extra dependency, ask. The workflow already depends on node so it’s no trouble to add an extra on the Gallery.


    But the change won’t work either way. Homebrew’s SQLite is keg-only, meaning it’s not symlinked and won’t take precedence.


    If there is a version of macOS with a SQLite that is too old, let me know what that is and I can add that as a dependency.

     

    1. I have updated the workflow, and dropped brew install script.

    2. requirement:  sqlite3 >=v3.33.0

     

  5. On 2/28/2023 at 6:17 AM, vitor said:

    The node_modules are stopping this from being added. Specifically, there’s a node_modules/sqlite3/lib/binding/napi-v3-darwin-x64/node_sqlite3.node unsigned binary which is only compiled for Intel. That means it won’t run on users machines as is.

     

    I have updated the workflow and am now using the built-in SQLite on Mac. The node-sqlite3 package has been removed as a dependency.

     

    I hope it can be reviewed and pushed forward again.

     
  6. Getting Bundle ID, Release Version Number, App icon of apps

     

     

    • appid to get Bundle ID of apps
    • av to get Bundle version of apps
    • display app is from appstore or not
    • Universal action support
      • App ID get id of app, type enter to copy
      • App Version get version of app,type enter to copy
      • App Name get name of app,type enter to copy
      • App ICON copy icon of app, type command enter to reveal in finder.

     

     

     

     1. I am the author of the workflow

    2. https://github.com/alanhg/alfred-workflows/tree/master/appid

    3. dependency: brew install node

    4. screenshot

     

    image.png.9a6142f189ab0b74b2a23e15901459b1.png

    screenshot2.png.38fb596fe5924d365222c4dd10e7f154.png

    image.png.4cd1f4f14df7b36395a98ca5962ecd70.png

     

  7. 3 minutes ago, vitor said:

    The keyword doesn’t matter, the code which does the updating does. What’s the purpose of the empty keyword?

     

    ok, I understand your point.

     

    I have update the workflow. auto-updater deleted.

     

    image.thumb.png.9cdd5370841b20aeb16be3c8d85ce8dd.png

     

    thank you.

  8. 26 minutes ago, vitor said:

    @Alan He Thank you for your patience. There’s one thing missing, removing the auto-updater. Gallery workflows are updatable from within Alfred itself, and as part of that a prerequisite for inclusion is that workflows not auto-update themselves. This is to avoid a confusing interaction of crossed updates and for security reasons, as Gallery workflows go through a number of checks.

     

    Once you make a new release without the auto-updater, this will go in.

     

     

    I set keyword empty.  as you say, I have to delete the keyword object?

     

    image.thumb.png.ea837f698ecc71e352b58f8bf70047ea.png

  9. 11 hours ago, Vero said:

    @Alan He Thanks for the additional details. 

     

    First, could you please open your Dropbox preferences and ensure the folder you're using for Alfred's preferences is set to always be available locally? If it's possible for Dropbox to make the preferences online-only, Alfred will lose access to them, resulting in unexpected behaviour.

     

    Once you've done this and Dropbox shows that the files are stored locally, try changing your note again and seeing if the issue is resolved.

     

    If it isn't, you can temporarily change your sync location (e.g. create a new "Alfred" folder in your user directory) so that the sync service is taken out of the equation for now. Are you now able to save changes?

     

    If you are now able to save changes, I would suggest creating a new folder in Dropbox, set it to be always available offline first, then set this as your sync folder. 

     

    Let me know how you get on :)

     

     

     

    1. I restart dropbox app and it works.

    2. I think you are right, the root cause is sync service.

    3. recommend set dropbox's upload rate is don't limit

       image.png.7dec785362ad3453307883a52ac14f68.png

×
×
  • Create New...