First, thank you for Alfred Remote. Brilliant new app that really has to be used to be appreciated.
I'm trying to construct a URL that I can launch with just a touch from the Remote. Easy enough, but the URL involves converting something typed at the keyboard into a coded reference that's then embedded into the URL.
I'll simplify it to just he basics on the hopes that someone here can steer me in the right direction.
I want to be able to find the data for a specific baseball player easily. The web page to access David Ortiz' statistics, for example, is:
http://www.baseball-reference.com/players/o/ortizda01.shtml
That last underlined part is the unique part of the URL. I can easily embed that into the URL in Alfred with:
http://www.baseball-reference.com/pl/player_search.cgi?search={query}
The trouble is, I don't want to have to remember the unique "ortizda01" code to get to Ortiz' page. I'd rather be able to use something friendlier, like "Ortiz." and have that looked up and converted to "ortizda01". Naturally, I'd like to create a whole table of these so that I can access other players just as easily, converting say, "Victorino" into "victosh01", etc.
I suspect there's a bit of coding involved here and I don't mind rolling up my sleeves, but I'd appreciate if I could get a high-level overview of the approach that seems best for this kind of thing.
Thanks so much in advance.
-- Robert