Jump to content

jjaybe

Member
  • Posts

    14
  • Joined

  • Last visited

Everything posted by jjaybe

  1. Hi, is it possible to use workflow environment variables for the workflow configuration itself? For example, I would like to set the default value for the directory containing the workflow scripts to `{const:alfred_preferences}/workflows/{const:alfred_workflow_uid}`, i.e. the parent folder of the current workflow as documented here. However, when using either a Text Field or a File Picker, the environment variables do not expand as they do within the workflow components. Thanks!
  2. Hi, I am currently converting workflow environment variables to more detailed specification inside a workflow configuration. I set some variables within almost all of my workflows, e.g. the path to the central directory with all my Alfred workflow scripts. When setting up a new workflow configuration, is it possible to easily copy the configuration (or parts of it, but not only the variable name or value) from another workflow? Since the new workflow already has content, I do not want to duplicate the old workflow and start from scratch only for the configuration. Another option would be the option to share global variables across all workflows. I believe this feature has been requested by other users before, so please correct me if this is already implemented. Thanks!
  3. Thanks @vitor, that worked perfectly! For completeness, I post the new version below. Since the output of the script filter is the full path and the AppleScript only requires the folder name, I included a Search and Replace Utility with the search regex .*(user\.workflow\..*) and `$1` as the replacement to strip everything before the folder name. The Run Script action then looks as follows: on run tell application id "com.runningwithcrayons.Alfred" to reveal workflow "{query}" end run
  4. I have a workflow with a script filter action that queries all my Alfred workflows and passes the path to the selected workflow folder (e.g. `.../Alfred.alfredpreferences/workflows/user.workflow.0D987BB0-9A2B-4162-9A68-A9905DFEF52F`) to the next action such that ↵ opens the workflow folder in VSCode ⌘+↵ opens the folder in Finder. My goal is to open the workflow in Alfred to edit it with ⌥ + ↵. Is this possible based on the file path to the workflow folder?
  5. Damn, that is indeed the piece I was missing 🙈 Didn't think of that ⌘C is actually executed and I had remapped that combination for Drafts via Keyboard Maestro. Amazing, that you immediately knew the cause Thanks @vitor!
  6. The Hotkey Trigger for Universal Actions does not work for selected text in the Drafts App. I have tried a number of exotic keybindings to avoid accidental keybinding conflicts, but is does not work for any of them. Rather, the issue seems to be that the selection in Drafts is not recognized by Alfred since the same MacOS system sound appears as in other Apps when no text is selected. Can anyone confirm this behaviour.? Not sure if this problem occurs due to the recent Drafts update. Versions: macOS Ventura 13.2 Alfred 5.0.6 Drafts 36 Thanks!
  7. Thanks for the insight @Stephen_C. That is somewhat unfortunate for now, but as you said it might change at some point in the future. Staying tuned 🙌
  8. Oh, my bad 🙈 Thanks, @vitor! Must be frustrating at times for you developers when the users do not even read the text that is right next to the action itself 🫣
  9. @Stephen_CThanks for this workflow, works great! Do you think it is possible to extend the workflow to open sub-submenus? For example, after searching for `Keyboard`, pressing ↵ could open the settings submenu as of now, but pressing e.g. ⌘↵ could open another List filter that shows and opens all submenus of `Keyboard` such as `Keyboard Shortcuts`, `Text Replacements...`, etc. The ability to open any Settings menu via Alfred would be amazing 🤗
  10. Oh, that is awesome, I had no idea that this existed! Have not tried it yet, but sounds like an incredible timesaver. If that behaviour is not yet documented anywhere, I think it is definitely worth adding to the documentation. Thank you so much!
  11. When the different options of a List Filter are quite similar, the fastest way to add a new option would be to duplicate an existing one and then modify the duplicated item. Right now, however, there seems to be no way to either duplicate or copy/paste a selected option of the List Filter and one has to manually click on the '+' Button with the mouse. Thus, my request is to make the creation of List Filters more keyboard friendly. Cheers!
  12. Hi, I have a number of workflows where I want to perform different actions depending on if there is currently text selected or not. One such example is when I want to enclose the selection by double square brackets if text is selected or position the cursor between empty double square brackets otherwise. Up to this point my go to way to achieve this is: 1. Hotkey Trigger with `Argument: Selection in MacOS` 2. Conditional Action checking if `{query}` is empty 3. a) If it is empty paste `[[{cursor}]]` b) If it is not empty paste `[[{query}]]` Problem What I think happens in step 2 is that Alfred simulates `Cmd+C` and checks if the latest clipboard entry contains text. In some editors like VS Code and Obsidian, however, `Cmd+C` copies the entire line when there is no selected text in the editor. Therefore, Alfred always concludes that text was selected (since the entire line is added to the clipboard) and case 3 a) is never triggered. Question Is there a better/smarter way to check if text is selected without simulating a copy action? Thanks!
  13. Hey, first post here, so first of all: Great App, great developer team, great community! Out of all the productivity apps on the MacOS ecosystem Alfred remains my daily driver 🤗 I make heavy use of Environment Variables primarily connected to script actions. So my first suggestion is right there: A keyboard shortcut to directly open the Environment Variable Window without using the mouse. One problem I often face is that by the time I edit e.g. my Run Script action I realize that I accidentally copied the name of the wrong environment variable or I copied the name instead of the value or vice versa. Since Alfred does not allow to open two Preferences Windows in parallel (actually not sure why, if this is indeed possible, please tell me 😊 ) I then have to close the action, reopen the Environment Variables Window, close it again and reopen the action again, which is tedious. Thus, my feature request is some form of quick access to Environment Variables while editing workflow actions. For example, Keyboard Maestro has an action called Insert Variable which can be assigned to a keybinding and opens a palette (see screenshot below) with all user-defined variables that are filtered by typing and inserted with Enter. Ideally, such a palette in Alfred would allow to paste the variable name or the variable value (one perhaps while pressing a modifier key) and only variables defined within the current workflow are displayed. Let me know if such a feature is even realistic or if I better get used to copying the correct variable name in the first place 😋 Thanks for your great work!
×
×
  • Create New...