Marc Posted February 9 Share Posted February 9 I have a URL in my User Configuration Variables where one part of the URL needs to be replaced by a query and then stored with the changes later use in workflow. Example: URL is stored in User Configuration Variable via TextField e.g. https://this/is/the/url/{TOBEREPLACED}/continued/url.html I want to replace {TOBEREPLACED} in this var with the input of the Alfred query. How can I achieve this? 1.) I can create a custom Search which works, but I could not find out how to use this in a workflow. 2.) Tried Replace Action with but that didn't work. Text is not replaced. 3.) Searched and found String replacement with bash (https://linuxhandbook.com/replace-string-bash/) but could not get a script to work. Thanks Link to comment
vitor Posted February 9 Share Posted February 9 Welcome @Marc, Hard to say exactly without specifics, e.g. how you’re triggering the workflow, and where the value that serves as the placement comes from. Here’s a workflow which does it with a Keyword. It’s annotated so you can see how it works. Marc 1 Link to comment
Marc Posted February 9 Author Share Posted February 9 Hi Vitor, wow that was quick! Thanks for the workflow. Did not know tasks yet since I just updated to Alfred5. I guess RTFM is still a good tip 😆 That opens up completely new universe of possibilities.😀 Not only problem solved also new found features via Tasks. I ❤️ Alfred vitor 1 Link to comment
vitor Posted February 9 Share Posted February 9 You can learn more about Automation Tasks in the documentation. For an interactive tutorial on making a workflow, see the Getting Started Guide. Marc 1 Link to comment
Marc Posted February 9 Author Share Posted February 9 Just started reading up on Tasks docs. There are also a solutions for the next steps in my workflow. This is really a GREAT feature. Will definitely come in handy for the next workflows too. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now