t3k
-
Posts
7 -
Joined
-
Last visited
Content Type
Blogs
Gallery
Downloads
Events
Profiles
Forums
Articles
Media Demo
Posts posted by t3k
-
-
On 11/4/2016 at 7:25 PM, Vero said:
@t3k There are a few ways to do this, with the best one being to use workflow variables to allow the user to enter these arguments one at the time.
Here's a guide to using variables in workflows:
https://www.alfredapp.com/help/workflows/advanced/variables/
You can then add the built-in Simple To-Do List workflow example to see the above example in action.
Alternatively, if you'd rather take one query and split it yourself, this thread covers that:
http://www.alfredforum.com/topic/6055-mutli-parameter-web-search/?do=findComment&comment=37205
Cheers,
VeroHi vero thanks for the answer and sory for late replies.
I've understand a little about using query splitting playing with andrew's kitten image example.
Can you explain it more about using the workflows to input the argument one at the time?
-
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?
-
9 hours ago, deanishe said:
It splits the input {query} on commas (IFS) and reads it into the array qarg.
Thanks, will it work if it have a space between them? Like "1234, 5678" ?
-
Hi sorry to bump the old thread, but what this:
IFS=',' read -a qarg <<< "{query}"
means?
And what happen if user not input all argument completely? (only several ones)
-
On 1/13/2016 at 8:30 PM, Andrew said:
Please email to me too, can I change it to be separated by comma, not space?
-
Hi all, so I want to make custom search for multiple argument and I need help.
I use Alfred v3 with powerpack, doesn't have many experience with programming.
The argument is for example:
- search keyword
- minimum price
- condition (used or new)
So when I type keyword and the argument separated by comma it will search to several website that I have registered.
Example:
User input aaa, bbb, ccc
Will search:
- website1.com/xxx=aaa&yyy=bbb&zzz=ccc
- website2.com/xxx=bbb&yyy=aaa&zzz=ccc
- website1.com/xxx=ccc&yyy=bbb&zzz=aaa
- so on
(the structure for each website is different)
condition:
- If input only aaa, not bbb or ccc, dismiss argument for bbb & ccc
- If input olly for aaa & bbb, dismiss ccc.
- The condition (new/used) is different for each website, so need to change from the given keyword to wach website format.
Hope it is clear enough. What is the best way to do it?
Any help would be appreciated.
Multiple query parsing for Google Flights
in Workflow Help & Questions
Posted
I've tried and in my case it didn't work.