Jump to content


  • Content Count

  • Joined

  • Last visited

Everything posted by tam131

  1. Wow thank you so much for this! Clearly my testing of the List Filter was very flawed as I didn't realize it works this way. This is perfect and exactly what I was looking for!
  2. Hi deanishe, Thanks, I must be confused then. I thought I would need to have the argument I type out into Alfred in the Arg field. If that's not the case, then where would I set up that argument? Maybe I'm still having trouble expressing what it is I'm looking to do. I have over 50 key-value pairs. For the developers here, think of an associative array. They look like so: array( 'product1' => 'http://docs.domain.com/products-full-name-1', 'product2' => 'http://docs.domain.com/products-full-name-2', 'product3' => 'http://docs.domain.com/products-full-name-3', 'product4' => 'http://docs.domain.com/products-full-name-4', ... 'product55' => 'http://docs.domain.com/products-full-name-55', ); I'm wondering if there is a way to set up a keyword ("wcp") workflow without any code (or minimal code) to map the argument (key in the array) to the URL (value in the array) so that when I type the following into Alfred, http://docs.domain.com/products-full-name-3 (the URL from the value) is opened in my browser: wcp product3 How could i use the List Filter to do that? This would be the optimal workflow as it allows for CSV importing, making it easier for our team to upkeep. This particular problem I'm trying to solve can be easily done with code and would be rather maintainable even by the team members who haven't touched a line of code in their life. That's because I could just do an array like above and look up the query. However, I'm using this as an example project so I can get more familiar with how Alfred works and what is possible with workflows out of the box. Thanks!
  3. If this isn’t possible, that’s not a big issue as I can have an array in the code which maps to the correct value and arrays are easy enough to update for most people. I’m more interested in learning what can be done with the app so I can wrap my head around all of the functions.
  4. Thanks for your reply! I understand how to open a URL so far. I’d like to type a command in Alfred and have it open a URL based on the argument. So my keyword right now is set to be “wcp”. When I type out “wcp coa” (coa is just an abbreviation of one of our products), i’d like Alfred to open the product’s documentation in a browser. I understand I can manually set up all 50+ documentation links as separate keywords but I want to see if it’s possible to have one keyword which opens the links based on an argument => URL mapping. One more example, if I type “wcp prp”, I’d like Alfred to open the PRP product’s documentation. Basically my question is: “is there a way to manipulate the query argument, change it to something else, before it’s passed to the URL action?” I could do this with code but it would be less maintainable for the rest of my team. I’m not sure if that’s made my requirements a bit easier to understand. I initially thought the List Filter would do this for me as it allows you to set up a list of arguments so I thought I could also map the arguments to their intended values. Thanks so much!
  5. Hey all, I'm brand new to Alfred and would like to set up some easy-to-update workflows for my support team coworkers. I believe a Script Filter is best suited for my requirements but I am hoping I'm overlooking another workflow which doesn't require any coding skills. While I'm a developer and can easily write the code required for this for my requirements, I want it to be easy to update for the non-developer members of my team. My first workflow idea is very basic. I would like a keyword argument pair to map that argument to a URL and then open that URL in the browser. There will be over 50 argument and URL combos so I would prefer not to create a keyword for each but to have a single keyword control this and open the correct URL based on the argument passed. So I was hoping to have a keyword set up some with mapping like: arg url arg1 http://url1.com arg2 http://url2.com arg3 http://url2.com ... ... so when the use types "keyword arg2" in Alfred, the default browser opens http://url2.com. I tried using the List Filter but that doesn't seem to let me set a "value" for the argument. Is there any input object or utility I can use in Alfred to set this up without any code? I have lots of other ideas for workflows to help our team and I'm hoping once I figure this out I will be better acquainted with the app in order to put those together with minimal code. Thanks for your help.
  • Create New...