The automator command can, surprisingly, be used to run automator workflows. I know, it’s crazy. Located at /usr/bin/automator the automator command can be used to fire up workflows. In its most basic incantation, you can invoke a workflow without much fuss. Here, I’ll use a workflow that just fires up a specific screensaver:
In addition, you can run workflows in verbose mode for simple troubleshooting using -v:
Which shows you each thing that happens in a step-by-step:
You can also send input into a workflow using -I and you can use -D to set multiple variables with values, which I’ll cover in a later article.
Start Screen Saver is running
Start Screen Saver is finished
The Automator workflow has completed.