Jump to content

vitor

Staff
  • Posts

    8,497
  • Joined

  • Last visited

  • Days Won

    708

Everything posted by vitor

  1. 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 have moved the post to the correct thread. But not the correct version of the Workflow. Use @giovanni’s fork.
  2. Git can indeed be hard to grasp at first. My advice would be to not fret about it and learn as you go. There are a few things you’ll need all the time, but most of its capabilities you’ll likely never use. See OneUpdater. If you have questions, I can help you make sure your setup is correct.
  3. Welcome @vanwoods, Check if there’s a conflict with the Hotkey. To find Hotkeys in use by Workflows, go to Alfred Preferences → Workflows and click the (…) at the top (to the right of the Filter bar) followed by Show Hotkeys. For keyboard shortcut conflicts caused by other apps, ShortcutDetective (scroll down until you see the detective badge) may be of help.
  4. As far as I gather, Airplay has to be initiated from the sending device (the iPad), you can’t “pull” from one. If you find a way it can be done, we can try to help you integrate it with Alfred.
  5. See Snippets and Text Expansion Troubleshooting, especially the part on the speed of key events.
  6. Welcome @jesused, Create a new Workflow and connect some input (like a Keyword) to a System Commands Action (Sleep Displays) which connects immediately to another (Lock). That way both will fire in succession, giving you what you want. Alternatively, just activate the regular Lock. When you do so, macOS turns off the display after about five seconds.
  7. I understand the solution you’re pursuing. But like I said you’re making something which is a workaround, GUI automation which is likely to break on Ventura. Wouldn’t you rather a more robust solution which has a better chance of surviving through (at least) the next update? Furthermore, the command-line tool I linked you to seems to do exactly what you want, is maintained, relatively popular, and should allow you to switch sources with literally one line of code. So why pursue the long winded slow solution which is likely to break instead of switching to the quick robust solution which is likely to continue working?
  8. @Saez I don’t understand the post reaction. I can try to guide you further, but I need specifics on what is tripping you up.
  9. @glawrie Looks like you’re on an old version. The line from your error is quoted out in the version for download in the repo (meaning it doesn’t run).
  10. @ninjasmurf Instead of a text field user configuration where uses need to type true or false, use a checkbox user configuration—those are made specifically for such cases. You won’t need to change anything else about the Workflow, the conditional will understand that as well.
  11. If you don’t have a working solution yet, don’t get married to a specific language. In particular, you’re using GUI automation to control System Preferences, meaning the approach is likely to break once you update to macOS Ventura because the app is being revamped. There are Workflows to switch input sources as well as command-line tools which you can use and will likely continue to work with the update. The latter should be easier to work with too, since you’re likely to be able to switch to the specific sources you want with a single line in your Workflow.
  12. Alfred shows the true path of files and directories. It’s imperative that those be accurate, otherwise you wouldn’t be able to access them or perform actions. You can make a Workflow to copy those paths without /System/Volumes/Data, but be aware they won’t be the real mount paths.
  13. Welcome @alxfyv, Alfred’s expansion is tool-agnostic. See the Snippets and Text Expansion Troubleshooting and tweak some settings, such as slowing down key events.
  14. Welcome @wilson jack, Apple has removed PHP from macOS in the initial release of Monterey. Easiest way to get it back (Alfred will pick it up) is to install Homebrew, followed by brew install php.
  15. For the first steps ([AT] for “Automation Task”): [AT] Get safari Tab List → [AT] Get Matching Arguments (for instagram URLs) → Join Args (with newline) → [AT] Get Column from Text (for the username). On the last one you could also use a Replace Utility to strip the part of the URL you don’t want. Then it gets trickier, because Instagram (for some reason) doesn’t provide a way to go directly to a Direct Message page for a specific person (I don‘t use Instagram, this is based on a quick search). And at lest in Safari, opening the same page a bunch of times in a row will just make it go back to the same one (which is sensible behaviour). You’d have to automate the browser to do the opening of each tab and pasting of content. Instagram is incredibly restrictive to anyone who doesn’t have an account, so I cannot be more precise here. To close the matching tabs, there is also an Automation Task for that.
  16. If you feel so inclined, posting the solution here when they get you sorted should be helpful to others as well.
  17. You’ll have to ask 1Password about it. It’s their tool having the issue, which as you can attest happens even outside the Workflow. I did a quick search online and haven’t found anyone else affected with that exact problem.
  18. The issue is that the 1Password command-line tool, op, is unable to create the configuration directory: Can you (in the Terminal) /usr/local/bin/op signin --force?
  19. I mean the the debugger output (open it and perform the failing action). Also, whatever output the Terminal shows, if that’s the case. I don’t know if the issue you’re facing is still the same.
  20. You are a version behind and it’s been over a month since you last posted on this thread. Please update, do the command, and paste the new debugger output.
  21. @drpbier You run it in Alfred, not the Terminal.
  22. @rob213 For anyone to be able to help, the requested information is necessary. In particular the debugger should show what is going wrong (but even if there are no errors, whatever it shows can still be useful).
  23. A Hotkey is an input. You press the Hotkey and it does something in the Workflow. What you’re looking for is the Dispatch Key Combo Output.
  24. For future reference, it is indeed possible. It’s whatever you send to standard output. In other words, if you echo (Bash and Zsh) or puts (Ruby) something in the Run Script, it will be read as input by the next object. Those commands do send a newline at the end, which you can avoid with echo -n / printf (Bash and Zsh) or print(Ruby). Alternatively, you can output a JSON string with arg filled out, and that will be used. That method is useful if you want to send more things along (such as variables). Avoid with input as query in favour of with input as argv so you don’t have to worry about escaping (there’s a reason the latter is the default). You’d then use $1 / ${1} (Bash and Zsh) or ARGV[0] (Ruby). You don’t need to start and stop the quotes. You can outright do touch "$dir/$query $timestamp.md".
  25. Seems like you’re looking for the Replace Utility, and perhaps the Argument and Variables Utility to save some of those as variables (such as the original).
×
×
  • Create New...