sozorogami Posted September 13, 2015 Share Posted September 13, 2015 Hi. I'm making my first workflow (Alfred 2.7.2), but I've encountered a couple snags. First, I'm trying to create a file to save data at the recommended location, but it seems like the alfred_workflow_data and alfred_workflow_cache environment variables are empty. For example, from within a Run Script action, if I do echo $alfred_workflow_data and then pipe the action to a notification, the {query} contents are blank. Other environment variables (version, workflow name, etc.) show up fine. Also, I was hoping to pipe the output of a Run Script action into a Default Web Search action, but the UI only seems to allow "triggers" and "inputs" to feed into actions. Why is this? The distinction between these categories doesn't seem to be documented anywhere. Thanks. Link to comment
Andrew Posted September 14, 2015 Share Posted September 14, 2015 It's possible that you haven't filled in the bundle id for the workflow (in the same place as where you set the name for the workflow), as this is used when formulating the data and cache folders. Also, the current workflow progression of triggers->inputs->actions->outputs was really there for simplicity when v2 was released. This will almost certainly change in the future. For now, just run the output of your action into an output 'run script' and instead of a default web search action, open the url with {query} from bash. Cheers, Andrew Link to comment
sozorogami Posted September 14, 2015 Author Share Posted September 14, 2015 Aha! That got it. It might be helpful to add a note about this in the env var documentation. Look forward to seeing how the workflow interface evolves in future releases. Thanks again! Link to comment
Andrew Posted September 15, 2015 Share Posted September 15, 2015 It might be helpful to add a note about this in the env var documentation. I've added a note to the env variables page: https://www.alfredapp.com/help/workflows/script-environment-variables/ Cheers! 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