dp1207 Posted July 18, 2015 Share Posted July 18, 2015 I created a custom search for flightstats.com that opens up the status of a given flight (e.g. "UA101", for United flight number 101"). I travel a lot, so it's very helpful. FYI, here is the url code: ""http://www.flightstats.com/go/FlightStatus/flightStatusByRoute.do?departure={%1}&arrival={%2}". Thanks. Link to comment
deanishe Posted July 20, 2015 Share Posted July 20, 2015 Not with Alfred's built-in Open URL Action, no. The problem is, Alfred will treat query as a single URL parameter if it isn't the whole URL. What you need to do is generate the entire URL yourself and pass that to an Open URL Action or a Run Script Action with language = bash and the following code: open "{query}" Link to comment
Vero Posted July 21, 2015 Share Posted July 21, 2015 On 7/18/2015 at 9:04 PM, dp1207 said: I created a custom search for flightstats.com that opens up the status of a given flight (e.g. "UA101", for United flight number 101"). I travel a lot, so it's very helpful. FYI, here is the url code: ""http://www.flightstats.com/go/FlightStatus/flightStatusByRoute.do?departure={%1}&arrival={%2}". Thanks. In addition to deanishe's answer, take a look at this thread for an example of another workflow that splits the arguments to look at Google Flights: http://www.alfredforum.com/topic/5902-multiple-query-parsing-for-google-flights/ If you want to take a look at Andrew's original example workflow, you can download it here: https://www.dropbox.com/s/3dbo30mhhk2cfsg/Kitten Image.alfredworkflow?dl=0 Hope this helps Vero Link to comment
heyJoeCampbell Posted June 15, 2018 Share Posted June 15, 2018 Hi @Vero that Kitten Image workflow is no longer available Link to comment
Vero Posted June 15, 2018 Share Posted June 15, 2018 @heyJoeCampbell Just updated the link Cheers, Vero Link to comment
tooonyo Posted January 11, 2019 Share Posted January 11, 2019 Hi ! Thanks for the help for creating URL with 2 arguments. I used the kitten sample, it's ok 🙂 Do you know what I have to do to add an automatic today date at the end of the URL ? Ex : http://mysite.com/bla/bla/20190110 I tried scripting, with no success... Thanks ! 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