Jump to content

vitor

Staff
  • Posts

    8,418
  • Joined

  • Last visited

  • Days Won

    696

Everything posted by vitor

  1. Did you mean to have a link for other people to download and try the workflow? Quick tip on the screenshots: macOS can take screenshots of individual windows, preserving their shadow against a transparent background. Press ⌘⇧4 and your cursor will turn into a crosshair. Now press space and it will change into a camera icon. Move it over a window and it will get a blue overlay. Click to take the screenshot.
  2. $PATH isn’t a special value, it is interpreted by the shell. In any other language the syntax would be different. Reading it as a string literal is the only correct behaviour for that case. The PATH Alfred uses is listed in the linked page, so if you want to append to it you just need to add those. OR, as it is more common, you add it in the Run Script itself: Well, yes, that wouldn’t work anywhere. A shebang is a clue for which interpreter to use when one isn’t specified. But you already specified one, /bin/bash, so the shebang is ignored. This is not an Alfred quirk, it would work the same in a terminal. If you write PHP code but tell Bash to execute it, it’s normal that it produces an error. You’re doing the equivalent to /bin/bash myscript.php but shebangs are only interpreted in cases like /path/to/myscript.php. See Calling non-standard runtimes from Alfred for the proper way to do it. Again, this is how it would work in a terminal too. Alfred isn’t doing anything weird. In fact it is adhering to the letter to how this is expected to work. This is the Unix model that has been in place for decades and is used by all well-behaved software. Because, as explained in the first link and the previous post, that’s how you get code which is broken and hard to diagnose, when everyone has different setups. Emphasis added:
  3. The answer is in the post right above yours. Google broke the functionality and as of now it’s uncertain if they provide an alternative.
  4. It is likely RStudio is auto-copying text when you select it, and thus when you press the shortcut it’s triggering the merge. See the KB article regarding iTerm, as the solution to try will be similar.
  5. They have not. It’s unlikely it’ll happen unless enough people ask for it.
  6. Welcome, They aren’t incompatible, the solutions are at the end of that article as is the reason why this choice was made. Workflows aren’t broken by it, they would be if the reverse were true. If Alfred read your environment, workflow sharing wouldn’t work predictably between machines because you’d need to replicate the other person’s environment. By setting it to a standard, you can be more reasonably confident it will work. You can change the PATH, it is not fixed. Before Alfred 5, it was common for developers to extend it (method 2) if the workflow had a dependency on some Homebrew package. That works the same today. If you find a workflow with /usr/bin/php, you can change it. Edit the workflow itself and/or submit a PR. Furthermore, for tools managed by macOS, developers should use the absolute path like /usr/bin/python3 if that works for their workflow because it ensures a more predictable experience that the developer can debug. Almost nothing in computing is all bad or all good; it’s always a tradeoff. More than a decade of Alfred development and evolution with the community informs these decisions. In your own personal workflows you should do whatever you prefer. Workflows which are shared with the wider community should adhere to a standard that will work for most people. Homebrew is the de facto package manager for macOS. It’s what most people know and use and even the people who use an alternative package manager know of it thus have the chops to work around it. Furthermore it is self-contained so there’s not really an issue to having it alongside another package manager for use with Alfred. It’s also the package manager that gets the most attention from Apple. I could go on, but what matters is that it was a pondered decision, and Homebrew came out by far as the best choice for this case while still not stopping you from using something else if you so choose. That was a bit long but I hope it helped to clarify. Have a great week!
  7. Nothing has changed about the detection. And without having access to the browser, there’s no way for me to investigate further. I can tell you the detection works by checking if the kCGWindowLayer of a window is 0 and if its kCGWindowOwnerName starts with the name of a known web browser. In other words, it doesn’t matter if it’s called Orion, Orion RC, Orion Beta, or Orion The Huntsman Browser, they’ll all be detected. That may help you figure out what changed. Also try using the Webkit Browser Automation tasks and giving it specific names.
  8. Indeed there is. Right click the Script Filters and in the context menu, near the top, you can disable “Treat Input as Universal Action”.
  9. Welcome @illegalhex, Understanding the Scripting Environment explains everything.
  10. Each item is a separate keyword and Alfred will learn your usage like with other keywords. In other words, the items you choose more will bubble to the top. You can also do some advanced tricks to guarantee they show up when typing certain parts of the keyword. See “Keyword Latching” in Understanding Result Ordering.
  11. The fuzzier the search, the bigger the performance implication. Have you considered a workflow with a Universal Action (keyword “mail”) connected to an Action in Alfred set to Jump to Mail to…?
  12. For reference, it doesn’t have to be JavaScript. While JSON did start from JavaScript, every major language nowadays handles it. At the end of the day it’s just text with a specific structure, you can even write it by hand. In the dte Script Filter, delete the last line and add instead: cat <<EOF { "items": [{ "title": "$(get_day_of_week "$input")" }] } EOF For more information, see Script Filter JSON Format or the Getting Started example workflows (press + on the bottom left, in the workflow list).
  13. @MM00 Use the fork by @giovanni.
  14. Make sure you’re on version 2024.1 of the Automation Tasks. Also, I need to know which ones are failing, with which error, and your Alfred and macOS versions. But again, Orion RC isn’t generally available so it’s only supported in a best effort basis. If I can’t access it, I can’t diagnose it either.
  15. 2024.1 New Task: Extract PDF Text. Trash: Add option to trash via Finder or system API. Open Apps: Fix description. Front Browser Tab List: Fix getting list.
  16. To open a new window specifically, there’s an Automation Task for that.
  17. Updated to 2024.1. Add Universal Action to install from ipsw.Capture system keys when running VMs.When deleting VM, remove it from ignored list.Hide Alfred before starting VM.Shorter Objective-C functions.
  18. Yes. You shouldn’t need those anymore. Reminder, as @Vero pointed out above, to not let an uninstaller clean Alfred’s files as they will likely delete what’s needed for Alfred 5 too. Glad you’re sorted, have a nice weekend!
  19. In addition to @Vero’s instructions, and you should follow those first, the way you’re starting the Alfred Preferences is atypical and seems to be a custom method. I wouldn’t be surprised if that’s somehow linking directly to the v4 preferences app (but can only say for sure by looking at whatever workflow you’re using). Instead, use one of the standard methods to open preferences.
  20. with input as argv does not mean “use $1”, that’s just how Bash and Zsh determine the first argument. You have to use the appropriate syntax for each language. When you make a Run Script and change the language, Alfred shows example code that tells you how to do it. In AppleScript it’s item 1 of argv. Please avoid pinging directly in new posts, as there are many people who are able and eager to help with basic questions but may get discouraged if they see a direct request. You learn best by teaching, so I encourage others to participate. In addition, please use the “Workflow Help & Question” for these queries (I have moved your post). The Advanced Rips & Tricks posts should be kept without replies so as to not cause confusion.
  21. Because it’s not returning anything, I’d bet it’s still running. Only show apps in /Applications shouldn’t really affect speed, but Ignore signed and notarised apps will. Do you have that on or off? Also, removing quarantine from apps where it doesn’t matter (they are signed and notarised) will also make it run faster (because it skips the check). This version writes a verifying_apps.txt file to your Desktop as it’s checking them, so you can tail -f ~/Desktop/verifying_apps.txt in a Terminal to see it as it happens. It may provide a clue.
  22. The challenge here is that this workflow has thousands of users but no other reports of this issue. Because you’re a power user (a programmer, even), it both means you know what you’re doing and we can discard the simpler stuff, but it also increases the possibility that something seemingly totally unrelated and external is causing the issue. It is very much worth noting that 1Password 7 continues to work as well as it ever did, even on Apple Silicon (does not require Rosetta), and as such the deprecated 1Password 7 bookmarks feature in Alfred’s preferences should too.
  23. What happens if you use another browser, such as Safari? transfer.sh is good temporary storage. I’ll also need to see a screen recording of it happening, with the debugger open.
  24. See the Gallery for hundreds of workflows. There are hundreds more on this forum and on GitHub. As for other features, they are listed on the main website. Is that what you’re looking for?
×
×
  • Create New...