Jump to content

vitor

Staff
  • Posts

    8,496
  • Joined

  • Last visited

  • Days Won

    708

Everything posted by vitor

  1. @Domscillator It’s hard to debug the issue if you’re using an internal workflow which cannot be shared. Please provide at least the debugger output, as it should provide a clue.
  2. As stated, there may be a better way to achieve what you want (we’d need more details to say for sure), but if you’re looking to access some option in the menubar, you may be looking for the Click Menubar Item in From App Automation Task.
  3. A more efficient way of handling this would be to, instead of relying on file search to open the command file, making a workflow (connect a Keyword Input to an Open File Action, or even better a Run Script Action) and adding the icon to the workflow or Keyword. Consider that if Alfred were to read the custom icon for every file of every file type, that could have a noticeable impact on performance (even unrelated searches) since there’d be an extra operation that would need to happen before displaying each result.
  4. Would you mind giving a specific example of how you’re looking to use this? Just to be sure I understand what you’re asking. I think you may be looking for the Paste Path Into Dialog workflow. It relies on some GUI automation, but there’s not really a great alternative to that as there’s no app-agnostic way to just replace that dialog, it’s a macOS thing.
  5. Welcome @Patrick Graf, Seems like you’re looking for the Script Filter Input. You’ll be able to take whatever is input in Alfred, then do your calculations and return some JSON which will show up in Alfred.
  6. Should also be worth considering joining both workflows together for the next version, so people only have to install one. Or (I just thought of this while writing the previous sentence) even having a Script Filter that both shows the battery and allows for connecting and disconnecting (you shouldn’t be able to know battery levels anyway when AirPods are disconnected, I’d guess). If you have an alternative icon, that would be helpful to further differentiate from the other AirPods workflow too. It surprised me a bit when I downloaded the Connector yesterday, as the icon in the notification was different from the one in the workflow.
  7. This is vey much untested (I have neither Pro Tools nor a keyboard with numpad), but what I was suggesting was something like: const systemEvents = Application("System Events") const keycodeNumpadMap = { "0": 82, "1": 83, "2": 84, "3": 85, "4": 86, "5": 87, "6": 88, "7": 89, "8": 91, "9": 92, ".": 65 } function run(argv) { argv[0].split("").forEach(character => { systemEvents.keyCode(keycodeNumpadMap[character]) }) systemEvents.keyCode(76) } This is using /usr/bin/osascript (JavaScript).
  8. That’s more of a question for the workflow’s author. There’s also Amazon Suggest in the meantime (which may or may not be of help to @giovanni too to figure out the issue).
  9. @porcupine945 When asking about an existing Workflow, it’s best to use its own forum thread. While it may seem that starting a new thread could give your problem visibility, it fragments the discussion and makes it less likely the author and users of the workflow (the people who can help) will see it. I’ve moved your post to the correct thread.
  10. The number of locations is not relevant, only that the syncing service evicts files. Please make sure your preferences are always available offline: Open System Settings and click on your name at the top. Then select iCloud and disable Optimise Mac Storage.
  11. Added! Quick note: I see that you’ve compiled and signed/notarised the blueutil binary. For security and transparency (most users arriving at the Gallery won’t have built a rapport with developers), we add a small note to the page when a third-party binary is included in a workflow. You can see it under the install/download buttons (see another example). If you’d prefer to instead remove the binary and use the Homebrew formula as a dependency (example), we can do that too. There’s no wrong or right answer, though, it’s whatever you prefer. I definitely get the choice to include the binary so user’s don’t have to worry about the extra download. By the way, you should be able to make a universal binary (instead of shipping two of them and having the conditional) with: /usr/bin/lipo -create /path/to/arm_version /path/to/intel_version -output /path/to/universal_version
  12. Not exactly, as the workflow already used Python 3, only the path changed so everyone’s on the same version. That break sometimes happens after a macOS update.
  13. You’re conflating the language dropdown (not hardcoded) with the PATH variable (which is hardcoded but can be overridden; see method 2). They are different things. In addition, ~/zshenv isn’t a standard file to be read by Zsh, ~/.zshenv is (note the leading dot). But that will only be read when the language is set to /bin/zsh, not when it’s /bin/zsh --no-rcs or any other non-Zsh language. launchctl doesn’t figure into it.
  14. Click on the first item, then hold ⌥ and click on the second one, then the third. I also recommend you see the Getting Started Guide for an interactive tutorial on making a workflow.
  15. Looks like you might not have executable permissions set in the script, as per the message. How are you running it from outside Alfred? If you’re running it like python /path/here instead of /path/here, it would corroborate the issue. Could you share your workflow? transfer.sh is good temporary storage.
  16. What you probably want is the Split Arg Utility. Send your argument as one string (separated by e.g. commas or newlines, whatever makes sense in your case) and then split it into multiples.
  17. It won’t. You can run your first command without issue. In your Run Script, if you have it set up to run Sequentially (top right), a subsequent run of that same trigger (and only that) won’t run until the first one finishes. if you change it to Concurrently, you can run it as many times as you want at the same time.
  18. I’m not at my Mac right now, but the way that should work is to take the user input (a string of digits), split it (get an array of characters), then run a loop where for every item in the array you check if it’s equal to a number and if so send that key code. Let me know if you can work with that. If not, I’ll take a look later.
  19. There’s a set of Automation Tasks to Script WebKit browsers. Try with that using the Custom browser option and seeing if it works.
  20. @Philipp Str There’s a simpler solution: use the Transform Utility to trim white space.
  21. Also @rdjfraser, make sure you’re using the fork by @giovanni and not the original by Dean. Same for the other thread. Use the versions in the Gallery for both.
  22. You’re probably facing this issue (link has solution).
  23. Add an Arg and Vars Utility with one file path per line in the argument. Connect it to a Split Arg Utility splitting on newlines to arguments (not variables). Connect that to the Automation Task.
×
×
  • Create New...