Jump to content

vitor

Staff
  • Posts

    8,498
  • Joined

  • Last visited

  • Days Won

    708

Everything posted by vitor

  1. Welcome @vaporpipe, By design, Alfred doesn’t read your shell’s startup files. Only some of the variables are set, to make the environment more consistent across installs. That is important for debugging and sharing Workflows, as well as more stable in general. Alfred 4 would read those only in special circumstances, the current behaviour of reading less is intended. If you need those extra variables, you can set them in the Run Script or source the relevant files (e.g. source "${HOME}/.zshrc").
  2. See the awgo wiki for why that’s happening and what to do.
  3. @wellerpond The Workflow works on Alfred 5, the last release was in March.
  4. Welcome @Trey S, Unlikely. A lot of people use the Workflow with multiple accounts, they are specifically supported. Follow the link to confirm the location.
  5. wc is counting the newline too. The fix will be out in the next Automation Tasks release, which should come in a few days. Thank you for the report and the kind words.
  6. Technically the action (probably) worked, it’s just that Shortcuts copied the image to a temporary location and resized it there. It’s weird, yes, but you can verify it by going into the temporary files location and seeing the images appear and disappear there. It can indeed get quite confusing. If you make the Shortcut and tell it to accept input files, then pass the files via Alfred to Run macOS Shortcuts, it should work (depending on how the Workflow is set up). It’s useful to know when there’s something you want from an Automation Task that is missing. Some Tasks on the list have been prioritised due to specific requests and others had features added for the same reason. I’ve now added an Automation Task to Resize Image by Percentage. It will be in by the next release, which should come in the next few days. I’m currently adding/testing other unrelated Tasks and they will all ship at the same time.
  7. Do you mean the virtual desktops? As far as I’m aware there’s no public macOS API to do that. Even the few apps who do something with those you can notice use hacky solutions via GUI automation. Use a Copy to Clipboard Output with {clipboard:N} where N is a number. See Dynamic Placeholders. Unfortunately, telling macOS to type text isn’t reliable. It trips itself up on diacritics and sometimes even on capitals (e.g. typing ANdy) or eats letters. Just tested it again and the issue is still there. If we can find a reliable way to do it, I’ll add the Automation Task. I can give you the code: function type_text(text_to_write) { text_to_write.split('').forEach(character => { Application('System Events').keystroke(character) delay(0.01) }) } function run(argv) { type_text(argv[0]) } Stick that in a Run Script with Language set to /usr/bin/osascript (JavaScript) and it’ll type the text you pass into it. Here is fine!
  8. Alfred Preferences → Advanced → Rebuild macOS Metadata.
  9. Maestral is specifically not recommended:
  10. Quick tip: because these are simple from a Workflow construction point (two connected objects), you might want to instead bundle them all in the same Workflow. That way it’s one download for people who use multiple tools, and because they are tiny in filesize, it won’t be a huge download. Also, makes it easier to maintain. Otherwise, if you wish to keep them separate, you can remove the icons from the Script Filters. When you don't add an icon in those boxes, Alfred auto-uses the Workflow’s icon.
  11. Welcome @Artemy, That is not necessary. You are just calling python3, so if the user doesn’t have it macOS will try to run /usr/bin/python3 which will show a GUI prompt to install the Developer Tools (which is done anyway when installing Homebrew) and it will then just work on consecutive runs. The version macOS adds is 3.8.9.
  12. @Missionary From your screenshots, you’re not searching for icons but navigating to them. When using Alfred’s File Navigation, all files show up regardless of hidden status or other settings, same as if you’d list them in a terminal. But I do see how that Icon resource fork can be annoying and listing it isn’t particularly useful. I’ll open a ticket internally for discussion.
  13. Use @andy4222’s first suggestion above: a File Filter Input with the Scope set to the same directory as the one you save to with NoteTaker, plus add kMDItemTextContent in the Fields tab.
  14. You are not using the Workflow from the table. You have to download them from the table I’ve linked.
  15. Make a Run Script Action with Language set to /usr/bin/osascript (JavaScript) and code: ObjC.import("AppKit") function run() { const clipboardTypes = $.NSPasteboard.generalPasteboard.pasteboardItems.js[0].types.js.map(c => c.js) if (clipboardTypes.includes("public.utf8-plain-text") && !clipboardTypes.includes("public.file-url")) return "text" return "not text" } That will output text or not text, depending. Can’t be more precise without knowing your Workflow. Use a Conditional Utility to filter the output.
  16. That is on the list. You have to download it from the table. The one was not on the list (it is now) because no one has requested it before. If you want it, you have to ask for it. Everything is explained on the page. Bundle IDs are not meant for searching. For future requests, please provide a download page, such as on GitHub or this forum.
  17. The Workflow should be working now, then.
  18. Alfred uses Spotlight’s indexing. In general, these macOS APIs only allow inclusionary search, not exclusionary.
  19. Don’t worry about it. Since we’re in the Workflow’s thread, you stating it is enough. Glad it’s working.
  20. @luckman212 Thank you for the reminder. Writing it up and it should be available soon.
  21. One more: use a List Filter Input to list your code snippets and paste them with a Copy to Clipboard Output. I also have a couple of Workflows which could fit this use-case well: NoteTakerTemplatesManager
  22. Apologies, I mentioned that from memory, indeed it doesn’t look to be implemented. While testing now it became immediately apparent why: it wouldn’t work with modifiers like ⌘ (⌘⇥ is used by macOS) and is quite awkward to use. Can you expand on how you’d leverage it? [background=#eee][font=courier,monospace]CODE HERE[/font][/background] I don’t write that every time, it’s just the style I decided for MarkdownTransform.
  23. Removing node_modules files from Alfred’s results explains the trouble (and alternatives) with excluding directories. Long story short (but check the page, it’s short too): the macOS metadata search API is the blocker. As for files, adding a alfred:ignore Spotlight comment to the file will make it not show.
  24. Welcome @Sören, If I understand your question, use the List Filter connected to a Copy to Clipboard Output to paste the content you want. If that’s not what you mean, please clarify your question. The more details you give, the better we can help.
×
×
  • Create New...