Jump to content

deanishe

Community Hero
  • Content Count

    5,601
  • Joined

  • Last visited

  • Days Won

    330

Everything posted by deanishe

  1. It wouldn't work. There's no application that can (usefully) open every kind of file. So you're basically asking for a feature that is fundamentally broken in a very important way. Such features do not get added to Alfred.
  2. Go to Franz in Finder, right-click and choose "Get Info". Add "slack" to the "Comments" or tags. Then Alfred should also find Franz for the query "slack". You might have to reload Alfred's app list first (keyword "reload").
  3. If you're using a Hotkey, you can tell Alfred to give you the current selection instead of simulating ⌘C.
  4. Do what exactly? What is your workflow trying to achieve? What I mean is, this might be an XY problem. @FroZen_X's initial problem could likely have been solved by having Keyboard Maestro type the altered text instead of putting it back on the pasteboard, for example.
  5. 1Password integration with what? Alfred's 1Password integration, or Chrome's 1Password integration?
  6. That sounds about right. Alfred uses keycodes under the hood (at least for user-set Hotkeys, so likely also for its own), and keycodes map to physical keys, not the letters on them. Presumably, this is very common behaviour, and Apple's own keyboard layouts have extra smarts for dealing with this situation.
  7. If you're using a Script Filter, your JS code would look something like: function run(argv) { return JSON.stringify({items: [{title: 'test', variables: {var1: 'val1', var2: 'val2'}}]}); } If you're using a Run Script action, the JS would be: function run(argv) { return JSON.stringify({alfredworkflow: {arg: 'test', variables: {var1: 'val1', var2: 'val2'}}}); } If you need any further help, please say exactly which bit you're having difficulty with.
  8. There is a variables HOWTO stickied at the top of this forum. The latest version is here: https://www.deanishe.net/post/2018/10/workflow/environment-variables-in-alfred/
  9. See my comment further up this page.
  10. Double-click the Open File action, the drag Commander One into the box on the right (where it says "the default application"). Then hit Save.
  11. Change the Open File action to open results in Commander One. Sorry, I don't know what you mean.
  12. Go into "Alfred Preferences > Features > Snippets > Auto Expansion Options > Tweaking" and increase the "Restore after" delay. Alfred uses the clipboard to insert snippets. It puts the snippet on the clipboard, then sends a "paste" signal to the active application. Unfortunately, there's no way Alfred can tell when (or even if) the application actually performs the paste, so it just has to wait for a bit to give the app time to do the paste, and then Alfred restores the previous clipboard contents. So if an application is responding slowly, it might not get around to performing the paste until after Alfred has already restored the clipboard. Increasing the "Restore after" delay gives the slow application more time to respond to the "paste" command.
  13. Alfred just shows a list of the applications that the system says can open that kind of file, so you'd really need to ask the developers of Commander One to add an appropriate file association to the application. An alternative is to add your own File Action in a workflow for filetype "folder" and connect it to an Open File action set to Commander One.
  14. https://github.com/deanishe/alfred-safari-assistant
  15. You don’t have to change the folders regularly. Just once if they’re not showing up in the results at all. Like I said, Alfred primarily sorts by its “knowledge”, which is its memory of which item you selected for which query. Modifying the folder is just a way to get an item into the results list in the first place so you can “train” Alfred. Alfred is tuned for performance, while Finder and Spotlight are tuned for comprehensiveness. You get much better results from Alfred by keeping searches focussed. So if you want to find folders, you configure your File Filter to only search for folders instead of any type of file. It’s fairly straightforward to set up a two-step search that first filters folders and then the files within the folder you selected. I believe one of the built-in example workflows demonstrates this technique.
  16. Connect your Keyword to a Run Script action with Language = “/usr/bin/osascript (AS)” and modify the template to run: tell application “System Events” to keystroke q
  17. There's no need to add subfolders: they're included automatically. No. Alfred will learn to associate particular items with particular queries (Alfred's "knowledge"), but it doesn't really have a concept of priority beyond that. It uses a simple binary match/no-match system and sorts results by time of last modification. Can you find the folder in Spotlight (Alfred uses the same index)? Have you tried a more specific query (if possible)? Should the folder be appearing in the results? Like, are you only getting a few results, but the folder isn't among them? Or are you getting loads and loads of results, and the folder isn't among them? If it's the latter, it's possible that it is being found, but is so low down the list of results that it's below the cut-off point (Alfred limits the maximum number of results it will show). As Alfred sorts results by their modification time, you can try to "bump" the folder up the results by creating a new subfolder or file within it.
  18. Hi @DharmaJay, welcome to the forum. When reporting an issue or asking a question, please always specify a real version number. We already don't know whether you mean the latest stable version or the latest pre-release version, and the latest version of either might change tomorrow. Same as above. Please specify the actual version number of your OS. Alfred doesn't run on anything but macOS.
  19. Not via Alfred/Alfred Remote, no. It’s not HTTP (IIRC), and the messages are encrypted. You should probably look at software designed for that sort of thing, like webhook.
  20. As noted above, different data should be cached under different keys. If you always use the key search-results, then you're always going to get the same data back regardless of the search query. Here's an example of query-based caching.
  21. No: Script Filters are specifically designed to work that way. You should use a Keyword instead. You should use a cache key that is dependent on the query. Either the query itself, if it's filesystem safe, or the MD5 hash of the query. This is usually because the library you're using to interpret command-line options is interpreting the ID as an option (because it begins with a hyphen). The usual solution is to use the argument -- to say "options are finished, anything that follows is an argument".
  22. If you post your workflow file somewhere, we'd be happy to have a look at it for you.
  23. Use a single Keyword to get the query, then connect it to multiple Open URL actions, one for each site.
×
×
  • Create New...