pixelgeek Posted March 14, 2023 Share Posted March 14, 2023 So is this a thing I can do in a Run Script object? cd "${var:hugoBlogPath}" I want to store paths to the user's content directory and terminal commands and then execute them in a Run Script object but it doesn't appear to matter how I format the commands they don't work. Link to comment
pixelgeek Posted March 15, 2023 Author Share Posted March 15, 2023 So I did some more testing and used the debug tool and found out that you don't add the `var:` part of the variable declaration So it is cd ${hugoContentPath}" This will let Alfred do variable substitution in the Run Script object. Link to comment
vitor Posted March 15, 2023 Share Posted March 15, 2023 Specifically, variables in scripts are passed as environment variables. How you read them depends on the language, there’s a knowledge base article on it. pixelgeek 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