It will be great if workflows have a Send keystrokes as an output action, to simulate key pressing.
This can facilitate workflows that acts as macros or autocompletion
Right now, when I need to return (write, keypress) certain value I must use this osascript
tell application "System Events"
key down return
keystroke "output value: "
keystroke "{query}"
end tell
But this solution isn't so elegant and tends for lag.
I know that modern text editor used to have this kind of features; but a keystroke action provides a generic & direct tool to control the system.
You may agree that sometimes the Automator can't reach your desired option.
Another output action can simulate mouse actions.
This tool can simulate different type of mouse actions: clicks, drags, movements, etc
http://www.bluem.net/jump/cliclick/
Currently I'm using this tools to automate repetitive task like
- Replace/filter strings
- Type down values (for keyboard keys)
- Take screenshots of the screen around the cursor
I hope that some of this stuff make sense for you.
Regards