arjohan Posted August 7, 2020 Share Posted August 7, 2020 It doesn't seem possible to use an incoming query as a variable name. I would like to use {var:{query}} to resolve an environment variable. In my specific case, I have many ports on my local network that I would like to access easier. So, in my environment vars I have: website1 | 5000 website2 | 6000 website3 | 7000 baseurl | localhost: I have a keyword "server", and I'd like to open {var:baseurl}{var:{query}} Therefore, searching "server website1" I'd like to resolve to localhost:5000 to open in a browser. What's the best way in Alfred to achieve this? Link to comment
deanishe Posted August 7, 2020 Share Posted August 7, 2020 In a Run Script with Language = /bin/bash and “with input as {query}”, you should be able to do address="${baseurl}:${{query}}". 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