I'm trying to run
xdotool type word then
xdotool key Return from Startup Aplications Preferences.
But if I use
;, xdotool evaluates it as continuation of input.
Long story short:
And put the path of the script in the
According to the
Command chaining via
When it says "ASCII" newline, it doesn't mean a bare
And it worked. But it only works if there is some character after the
And this works and leaves no trailing space. However, it might cause problems for those using Vi mode in their shell.
Thanks to @steeldriver's comments I figured out that this was due to me trying it out on the very terminal I was executing the commands on. Just a small gap between my pressing Enter and the
So either extending the line by quoting it:
or using the shell interpretation as @steeldriver suggested looks like the right option.
However, a script containing:
You can have a script with
Seems to me the application is not parsing multiple commands, abut treating it as a single command. As such make it a single command by wrapping it a shell call...
Now you can also do other shell things...
Note that the "date" command used in that last includes a newline! and "xdotool" will output it.
NOTE: if you are doing this as a keyboard macro I would also add a few more options to "xdotool" to make this work better...