wpanther93 Posted March 19, 2015 Share Posted March 19, 2015 Hey guys, Is there a way I can use alfred to open URLs with multiple queries? I want to do something like website.com/{query1}/someOtherText/{query2} I use a lot of sites that vary a single line in the url, and I don't want to make a new search for each one. Thanks! Link to comment
Andrew Posted March 20, 2015 Share Posted March 20, 2015 Hey guys, Is there a way I can use alfred to open URLs with multiple queries? I want to do something like website.com/{query1}/someOtherText/{query2} I use a lot of sites that vary a single line in the url, and I don't want to make a new search for each one. Thanks! You can achieve this with a workflow. Here is a simple example for you: https://dl.dropboxusercontent.com/u/6749767/Alfred/Workflows/Kitten%20Image.alfredworkflow It takes a comma separated argument with keyword kitten to launch a URL with two arguments Link to comment
wpanther93 Posted March 20, 2015 Author Share Posted March 20, 2015 You can achieve this with a workflow. Here is a simple example for you: https://dl.dropboxusercontent.com/u/6749767/Alfred/Workflows/Kitten%20Image.alfredworkflow It takes a comma separated argument with keyword kitten to launch a URL with two arguments Very clever. Thanks for your help! Link to comment
heyJoeCampbell Posted June 11, 2018 Share Posted June 11, 2018 Hi @Andrew the workflow is no linger available on Dropbox. Please repost Link to comment
heyJoeCampbell Posted June 12, 2018 Share Posted June 12, 2018 Hi @wpanther93 do you still have the workflow provided by @Andrew? If so, please share it ? Link to comment
heyJoeCampbell Posted June 15, 2018 Share Posted June 15, 2018 Thanks @CJK but what I am looking for is a way to add multiple variables into one URL website.com/{query1}/blah/{query2} I do not code - I need a plug & play workflow that I can mod ? This thread from 2014 looks promising: GatorMapi 1 Link to comment
heyJoeCampbell Posted June 15, 2018 Share Posted June 15, 2018 Here's the sample workflow @CJK — thanks to @Vero https://www.dropbox.com/s/3dbo30mhhk2cfsg/Kitten Image.alfredworkflow?dl=0 Link to comment
deanishe Posted June 15, 2018 Share Posted June 15, 2018 16 hours ago, heyJoeCampbell said: but what I am looking for is a way to add multiple variables into one URL website.com/{query1}/blah/{query2} I do not code - I need a plug & play workflow that I can mod Which is exactly what the Kitten Image workflow appears to be. You literally just need to change the URL. In what way is that workflow unsuited to your purpose? Link to comment
CJK Posted June 15, 2018 Share Posted June 15, 2018 (edited) 4 hours ago, deanishe said: Which is exactly what the Kitten Image workflow appears to be. You literally just need to change the URL. In what way is that workflow unsuited to your purpose? @deanishe, @heyJoeCampbell was responding to the workflow that I posted given that the original was not available at the link at the time. However, I misinterpreted the objective of the OP, so my workflow does something entirely different than what was needed, whereas the Kitten Image workflow actually solves the problem and has now been reposted. I've now deleted my workflow as it's not relevant this post. Edited June 15, 2018 by CJK Added note regarding deletion of previous post Link to comment
heyJoeCampbell Posted June 15, 2018 Share Posted June 15, 2018 I am modifying the sample kitten code to create my VERY FIRST Alfred Workflow that for adding an event to Google Calendar. This is what it looks like so far: Link to comment
deanishe Posted June 16, 2018 Share Posted June 16, 2018 How are you getting on with the Kitten Image workflow? That one's only written for two variables. Have you fixed it to accept four? Link to comment
Princess Posted October 13, 2018 Share Posted October 13, 2018 Question...... I am doing something similar using the dropbox file from above but am not getting the results I desire..... Yes, I'm sure I'm doing it incorrectly. All I changed was the url.... yes xxxx isn't he correct website, but the rest of it is. and I get the results This gives me the correct results when I do it with with web search for one item use and get the correct result of If somebody can help me make this work, the second part to my questions would be to know if it's possible to press apple space, enter the keyword and paste multiple order numbers that are currently vertical in an excel spreadsheet? I'm guessing the comma would have to be taken out and replaced with something else.... but I'm not sure what. Thanks in advance for your help! Link to comment
deanishe Posted October 14, 2018 Share Posted October 14, 2018 You can’t mix {query} and argv. It’s one or the other. Please upload your workflow somewhere and post a link. We can’t really fix a workflow based on pictures of it. Link to comment
Princess Posted October 14, 2018 Share Posted October 14, 2018 Um, maybe I'm in over my head because I honestly don't understand much of this, sorry. I was hoping to use the one that was posted in the dropbox link so I don't have anything I'm building off of and was hoping somebody could possibly help me. I love the way I've been doing it for years with only one word/number in the query I've been using. My new goal is to press apple spacebar, enter my key word of x and then cut an paste order numbers from Excel that are arranged vertically and have them open up in a website in multiple tabs. I can't enter the entire url since it's for work. Is this possible? Link to comment
deanishe Posted October 14, 2018 Share Posted October 14, 2018 1 minute ago, Princess said: I can't enter the entire url since it's for work. Then use a fake URL. It doesn't matter if I get a bunch of 404s in my browser: I can still see whether the URL is what I expected or not. What you want to do sounds quite straightforward. But that's only if I've understood you correctly. I'd rather not rewrite the workflow a bunch of times because we weren't on the same wavelength. If you have no idea about writing workflows, then in addition to your above description, please provide some sample input and describe the expected results. Link to comment
Princess Posted October 14, 2018 Share Posted October 14, 2018 (edited) Fair enough.... thanks, I appreciate it! Currently I type c 62111 and get the results www.blahblahblah.com/house/{query}/fun I'm hoping to replace the 62111 with multiple entries such as... 63222 62312 62311 which I've pasted from a column in Excel (different cells), and have it open up in three different tabs in the same window in Chrome. Edited December 18, 2018 by Princess Link to comment
deanishe Posted October 14, 2018 Share Posted October 14, 2018 Try this: Excel to URLs. Change the URL in the workflow settings sheet (which looks like this [?]) Link to comment
deanishe Posted October 14, 2018 Share Posted October 14, 2018 Yeah, that's your old, broken workflow. Make sure you're running the right one. Link to comment
Princess Posted October 14, 2018 Share Posted October 14, 2018 Oh my goodness you're brilliant!!!! Thank you!!! Yes, you're correct, I didn't turn off the first broken one I was using. Thank you! Link to comment
deanishe Posted October 14, 2018 Share Posted October 14, 2018 5 minutes ago, Princess said: Oh my goodness you're brilliant! I am the Alfred Whisperer. Does it work with your real URLs? Link to comment
Princess Posted October 14, 2018 Share Posted October 14, 2018 Yes, it works perfectly! Go buy yourself a pint of Vitus! ... seriously! Thanks! Link to comment
deanishe Posted October 14, 2018 Share Posted October 14, 2018 Never seen Vitus, but my next Erdinger is on you. Thanks very much! Link to comment
Princess Posted December 13, 2018 Share Posted December 13, 2018 (edited) Is there a way to build on top of what you build last time? Can there be two queries. In the example the below, 62311 would be the query that you wrote last time where I can dump a bunch of numbers in from Excel.... and 333 would be a new query? Is this possible? I'm hoping I can just enter Keyword 333, 62311 Keyword (3 digit number), (all the numbers I'm pasting from Excel) Your last workflow is working magically! Edited December 18, 2018 by Princess add info Link to comment
Princess Posted December 17, 2018 Share Posted December 17, 2018 (edited) I was able to get the kitten workflow to open a site with two queries... but I couldn't figure out how to adjust the one the "Alfred whisperer" @deanishe created. I'm still hoping that one can be adjusted so I can dump a bunch of numbers from Excel into it. Thoughts? Is there a way to build on top of what you build last time? Can there be two queries. In the example the below, 62311 would be the query that you wrote last time where I can dump a bunch of numbers in from Excel.... and 333 would be a new query? Is this possible? I'm hoping I can just enter Keyword 333, 62311 Keyword (3 digit number), (all the numbers I'm pasting from Excel) www.blahblahblah.net/xxxx/{query}/info Edited December 18, 2018 by Princess Link to comment
deanishe Posted December 18, 2018 Share Posted December 18, 2018 I don't exactly follow you. You want to type 333, then paste a column of numbers from Excel into Alfred, and have the workflow open a URL for every number from Excel but with 333 added to each one? 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