luckman212 Posted May 22, 2023 Share Posted May 22, 2023 I think I have a need to get the alfred_workflow_uid environment variable into my workflow's {query} so I can pass it to the Terminal Command script object. Can't figure out how to do that. Trying to set it with Args & Vars or JSON Config isn't working. I used "Run Script" with echo $alfred_workflow_uid as a poor man's hack, but I was hoping for a better way. Better yet, can Terminal Command directly access the alfred_workflow_uid somehow? Link to comment
vitor Posted May 22, 2023 Share Posted May 22, 2023 2 hours ago, luckman212 said: Trying to set it with Args & Vars or JSON Config isn't working. How are you doing it? For variables that Alfred sets you use the {const:} format rather than {var:} (see docs). luckman212 1 Link to comment
luckman212 Posted May 22, 2023 Author Share Posted May 22, 2023 Ah! no, I definitely did not know about const: 🙃 I see that was added to the docs in late 2022... it has probably been a while since I reviewed those. As always, thank you so much for your amazing expertise! Link to comment
luckman212 Posted May 23, 2023 Author Share Posted May 23, 2023 @vitor Just wanted to thank you again. The {const:alfred_xxx} syntax is working perfectly! vitor 1 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