-
Posts
8,498 -
Joined
-
Last visited
-
Days Won
708
Content Type
Blogs
Gallery
Downloads
Events
Profiles
Forums
Articles
Media Demo
Everything posted by vitor
-
Help about environmental variables after upgraded to Alfred 5
vitor replied to vaporpipe's topic in Discussion & Help
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"). -
See the awgo wiki for why that’s happening and what to do.
-
@wellerpond The Workflow works on Alfred 5, the last release was in March.
-
Google Drive — List File Stream contents from Google Drive
vitor replied to vitor's topic in Share your Workflows
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. -
Make Pixelmator open a file, resize, and compress it?
vitor replied to Ray Porrello's topic in Workflow Help & Questions
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. -
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!
-
Alfred Preferences → Advanced → Rebuild macOS Metadata.
-
Maestral is specifically not recommended:
-
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.
-
NS (Nederlandse Spoorwegen) Train schedule for Alfred
vitor replied to Artemy's topic in Share your Workflows
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.- 10 replies
-
- ns
- nederlandse-spoorwegen
-
(and 4 more)
Tagged with:
-
@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.
-
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.
-
You are not using the Workflow from the table. You have to download them from the table I’ve linked.
-
How to filter selection of texts from that of images/videos
vitor replied to YuTang's topic in Discussion & Help
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. -
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.
-
Are you doing as above?
-
The Workflow should be working now, then.
-
Exclude files from search results based on content of text?
vitor replied to woowoo's topic in Discussion & Help
Alfred uses Spotlight’s indexing. In general, these macOS APIs only allow inclusionary search, not exclusionary. -
DualFinder - Make Finder a dual-pane file manager
vitor replied to sjackwu's topic in Share your Workflows
Don’t worry about it. Since we’re in the Workflow’s thread, you stating it is enough. Glad it’s working.- 7 replies
-
- finder
- total commander
-
(and 2 more)
Tagged with:
-
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
-
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.
-
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.
-
Select snippet based on a list filter and pass content to a script
vitor replied to Sören's topic in Discussion & Help
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.