kcmerrill / alfred

(v0.2) Even Batman needs a little help. Task runner. Automator. Build system.
MIT License
63 stars 14 forks source link

Add ability to capture output as variables #27

Closed moritzheiber closed 7 years ago

moritzheiber commented 7 years ago

I would love to be able to run a task within Alfred and capture the output of said task inside a variable or parameter which I can then pass to another task.

Example pseudo-code:

variable:
  summary: Gets a random number
  command: $(($RANDOM%10500+10122))

print.random.number:
  summary: Output of a random number
  command: echo "The number is {{ .variable.Output }}"
moritzheiber commented 7 years ago

You're awesome, thank you! 🎉