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
Even though it says "ASCII" newline, it doesn't mean
And it worked. But it only works if there is some character after the
And this works and leaves no trailing space. However, all this was in a terminal, with me typing the commands directly. This didn't work in a script. Worse, it is very difficult to get it working in a .desktop file, with the difficulties in escaping.
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
But this didn't help the behaviour with the
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...