Jump to content

Multiple Arguments in Custom Web Search


Recommended Posts

Is it possible to create a custom web search where I can input multiple space-delimited queries/arguments into a search URL?

XE AUD USD

Example sourceURL: https://xe.com/currencycharts/?from={query1}&to={query2}

 

 

Hi there,

 

This isn't possible with standard web searches, but is possible with a simple workflow. If you have a Powerpack, pop your email address in the Powerpack field in the forum profile (only viewable by Vero and I), and I'll share my workflow with you :)

 

Cheers,

Andrew

Link to comment
  • 9 months later...
  • 2 weeks later...
  • 1 year later...
On 1/13/2016 at 8:30 PM, Andrew said:

 

 

Hi there,

 

This isn't possible with standard web searches, but is possible with a simple workflow. If you have a Powerpack, pop your email address in the Powerpack field in the forum profile (only viewable by Vero and I), and I'll share my workflow with you :)

 

Cheers,

Andrew

 

Please email to me too, can I change it to be separated by comma, not space?

Link to comment
9 hours ago, Andrew said:

@t3k I've just created you a simple example which uses comma as the separator and messaged it to you :)

 

Hi thanks andrew, I just playing the example but I ran to a problem which because it's an array it will convert %5B and %5D to %255B and %255D. The problem is similiar as this: link. And in my case it will make the query not working. Is there any solution?

Link to comment
  • 3 months later...
  • 4 years later...
  • 2 weeks later...

Here is a simplified (no script) version of the original workflow I shared:

https://www.dropbox.com/s/puacw4w4q9tbm1y/Placeholder Images.alfredworkflow?dl=0

 

Keyword 'placeholder' takes a comma separated argument, splits to variables, then uses these variables in the Open URL object. For example, show Alfred and type:

 

placeholder 400,300

 

You'll get a picture of a kitten at that size. Let me know if you need help converting this for your use case :)

 

Cheers,

Andrew

Link to comment
On 6/11/2022 at 4:02 PM, Andrew said:

Here is a simplified (no script) version of the original workflow I shared:

https://www.dropbox.com/s/puacw4w4q9tbm1y/Placeholder Images.alfredworkflow?dl=0

 

Keyword 'placeholder' takes a comma separated argument, splits to variables, then uses these variables in the Open URL object. For example, show Alfred and type:

 

placeholder 400,300

 

You'll get a picture of a kitten at that size. Let me know if you need help converting this for your use case :)

 

Cheers,

Andrew

 

Thanks Andrew! This is totally game-changing. :)

 

It looks like it explains itself. I just wasn't aware of the existence of those elements.

 

Thanks you so much!

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...