Jump to content


  • Content Count

  • Joined

  • Last visited

  • Days Won


Everything posted by Andrew

  1. @deanishe I'll see what's possible for 4.1
  2. It sounds like we need some way to call a Keyword Input directly from external AppleScript (via some sort of id, and providing an argument). This would allow Alfred to make that Input unique (much like pressing return on the result placeholder for that input, and the other results are removed), while populating the keyword and provided argument for the history.
  3. Re-running a workflow based on a keyword is also fragile, as there may be multiple Inputs with the same keyword, and you'd get unexpected results (i.e. multiple workflows running on calling back for that keyword). It's better to use an external trigger wired into the Keyword Input and call back on that instead which takes you directly into the keyword you want by specific identifier.
  4. https://www.alfredapp.com/help/troubleshooting/indexing/mdls/ I've changed the title and am moving this to discussion and help. Cheers, Andrew
  5. @nikivi if you take out the net.daringfireball.markdown file type, is the file being found? The underlying metadata could be broken.
  6. @vitor I just replied to the linked thread. It's unlikely that I'll update Alfred to treat invalid items as anything other than invalid, but I've offered a workaround. I'm gonna move this thread to workflow questions instead of closed, as it's interesting knowledge for others.
  7. @vitor one way you could achieve this is make sure all items in your Script Filter have a UID, and make them all valid. Make a connection out of the Script Filter into a Junction, then configure the connection between the Script Filter and Junction to not close Alfred's window (you'll get a square instead of circle on the connection): This way, you actually WILL be actioning the items, but Alfred's window won't close. The next time you show Alfred, the selection will be taken into account when sorting the items. Cheers, Andrew
  8. @bmazin thanks for the detailed reproducible cases, could you please update to the 4.0.9 b1143 pre-release and let me know how you get on! Thanks, Andrew
  9. @40-02 Could you please update to the 4.0.9 b1143 pre-release, I believe I have a workaround to this
  10. The focused app variable actually represents the currently focused app in the instant just before Alfred is shown with the custom hotkey. If the focused app variable was arbitrarily available at any point while the workflow is running, it would almost always return Alfred as being the currently focused app.
  11. @Jasondm007 for now, you could use the focused app variable, and a conditional to only press left if com.runningwithcrayons.Alfred is the front most app, a bit like this: Everything you suggested isn't just a "simple fix" as any behavioural changes would have to be consistent with macOS and throughout Alfred's various input fields, and it would inevitably cause regression, or change of behaviour for another user who may have relied on doing something the same way for years based on something we may have overlooked here. Remember that the use case you have suggested (e.g. arrow down = you don't want the selected text any more) fails to cover another case of a user manually selecting some text, then arrowing down "just because", but still wanting to keep their text selection for copy. This user may not even be showing the last typed query, so it would be inexplicable behaviour. Another possible change could be something like an option to only keep the last query text highlighted for e.g. 1 to 2 seconds after showing Alfred, then move the caret to the right automatically. This would achieve a couple of things, it would give a user enough time to "type over" the query, or shortly after to amend the query. It would also, without changing selection behaviour, keep the Selected Text / Copy paradigm without regression, while working with your workflow. Again, this hasn't come up before, so I'm very wary of making any changes in this area.
  12. Hmm I'm going to have to investigate why I made it AppleScript only in there, it may just be a completely legacy thing. I'll add a note, and if there is no significant reason, then I could likely add in arbitrary scripting.
  13. @deanishe I understand that... and thought I had conveyed why in my reply in the 3 bullets. His hotkey takes the Selection in macOS (arbitrary selection); When text is selected in Alfred's search field, THAT is what is copied to the clipboard when you use ⌘C (which Alfred uses for selection in macOS).
  14. @ladychili check the macOS Security & Privacy > Privacy > Automation settings to ensure that Terminal / iTerm is selected for Alfred. If it is, then try un-ticking and re-ticking these. You may also need to check your specific integration with iTerm in Alfred's Features > Terminal is correct or up to date. Cheers, Andrew
  15. There were a couple deliberate design decisions I made with this behaviour, which you've already noticed: When showing Alfred with the previously typed text, this is highlighted automatically so that it can easily be overtyped. Selection in macOS works by using ⌘C in any app, it doesn't matter the context, e.g. a textual path in Terminal will work as well as a file in Finder. For intrinsic usability, if there is a text selection at any point in Alfred's input field, ⌘C will copy this instead of the highlighted result. The selection in the hotkey you are using is disconnected from and agnostic of the underlying app, which is why it can't work like one of the built-in action modifiers. To clarify, you use the hotkey, it simulates ⌘C and uses the result. It just so happens that this also works within Alfred's own window because Alfred presents the results as copyable. To "work around" this issue, you could always press the left arrow before using your hotkey to select the file. This would move the caret to the left of the typed query (while not invoking the default right arrow actions panel), then there is no selection in the input field, allowing for ⌘C to take the selected result. As for a behaviour change, I'm not overly keen on arrow down automatically clearing the selection as suggested. This wouldn't be consistent behaviour across Alfred, and wouldn't match macOS built-in behaviour (e.g. Spotlight). This would also be inconsistent for the top result (without pressing the down arrow) vs subsequent results after pressing the down arrow and results being cleared. In your workflow, you could setup the following which would achieve what you need: Hotkey > Dispatch left arrow > Dispatch ⌘C > Delay 0.1 > Arg/Var putting {clipboard} into Argument > ... I'll have a bit of a think about some other workarounds to this issue, but it's not a common problem as I can't remember if this has come up before. Cheers, Andrew
  16. @vitor these are configured in Alfred's Advanced prefs, you can disable "Action visible results" and also configure the "Reveal in Finder" shortcut which should work in default results and navigation. Cheers, Andrew
  17. @Gee Did you remove Alfred from the macOS Accessibility prefs, and re-add back again?
  18. @Gabriel_A the cog and sorting options were added in Alfred 4, I suspect you're still running Alfred 3. I can see you've already obtained your v4 license, so you'll need to update to Alfred 4 if you want this option.
  19. @abdulrahman sahmoud Have you installed a Sublime extension, or have sublime configured to have concealed or transient clipboard interactions? Alfred discards concealed or transient data by design. [moving to discussion and help]
  20. @Gabriel_A the sorting options in navigation mode are from the little cog in the bottom right of Alfred's File System Navigation window. https://www.alfredapp.com/help/features/file-search/#file-nav
  21. @andersennl would you mind sharing a little more info about how you're achieving this, as it may help others. Are you using Synology Drive Client?
  22. Ah I missed this first time it was posted, totally useful. I'll sneak it in for the next 4.0.9 build
  • Create New...