demattia Posted June 10, 2013 Posted June 10, 2013 (edited) Hi, I have a pretty simple question that I can't seem to find an answer to. Hope someone here can shed some light on the situation. I have a super simple output script with the following line: open http://{query}.domain.com The query is something like my_sub (which I've validated with a post notification where it works just fine). The problem is that the browser tries to open the url as only my_sub, and if i put quotes around it, ie: open "http://{query}.domain.com" Then nothing happens at all. As an added note, the following command, just before the other one, also works fine in the output script: open -a "Sublime Text 2" /Volumes/dev/{query}/ Thanks, Johannes Edited June 10, 2013 by demattia
jdfwarrior Posted June 11, 2013 Posted June 11, 2013 Hi, I have a pretty simple question that I can't seem to find an answer to. Hope someone here can shed some light on the situation. I have a super simple output script with the following line: open http://{query}.domain.com The query is something like my_sub (which I've validated with a post notification where it works just fine). The problem is that the browser tries to open the url as only my_sub, and if i put quotes around it, ie: open "http://{query}.domain.com" Then nothing happens at all. As an added note, the following command, just before the other one, also works fine in the output script: open -a "Sublime Text 2" /Volumes/dev/{query}/ Thanks, Johannes Maybe I'm missing something but the quick test I put together for this seems to work fine. I created a workflow, added a keyword that requires a parameter, then added a Run Script item. I left the language set to bash and set the script to.. open "http://{query}.google.com" This works just as expected. I'd be glad to help you but I need a little more info so I can try to figure out what your doing and where I'm setting it up wrong. Thanks
demattia Posted June 13, 2013 Author Posted June 13, 2013 Maybe I'm missing something but the quick test I put together for this seems to work fine. I created a workflow, added a keyword that requires a parameter, then added a Run Script item. I left the language set to bash and set the script to.. open "http://{query}.google.com" This works just as expected. I'd be glad to help you but I need a little more info so I can try to figure out what your doing and where I'm setting it up wrong. Thanks Yes, you're missing a vital part of it, which is where things stop working for me. I have a keyword, mmc, that requires a parameter. This get sent to a Run Script, which performs a curl and then outputs the {query} back, which is sent to an Output Run Script and a notification. The notification works just fine, but the Output Run Script behaves very weirdly. If I send the full URL to the output script, then open {query} works fine, but if I try to construct the URL by doing open "http://{query}.domain.com" then it doesn't work.
jdfwarrior Posted June 14, 2013 Posted June 14, 2013 Yes, you're missing a vital part of it, which is where things stop working for me. I have a keyword, mmc, that requires a parameter. This get sent to a Run Script, which performs a curl and then outputs the {query} back, which is sent to an Output Run Script and a notification. The notification works just fine, but the Output Run Script behaves very weirdly. If I send the full URL to the output script, then open {query} works fine, but if I try to construct the URL by doing open "http://{query}.domain.com" then it doesn't work. Is there any way you could share it with me so I could have a look at it? Perhaps email it to me or share a link here. Email would be david@alfredapp
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