Skip to content

Set Workflow Variables Via Script

Resources

Set Variables

source ~/.zsh_env_vars.sh

cat << EOF
{
  "alfredworkflow": {
    "arg": "arg",
    "variables": {
      "WIKI_DIR": "$WIKI_DIR"
    }
  }
}
EOF

This would make the workflow variable var:WIKI_DIR available in the rest of the workflow (in the subsequent steps).