I want to run menu commands from inside an AFL script. In particular I want to apply "Pretify Selectgion" to an entire .afl file, from inside another AFL file.
"Prettify selection" is a code-reformatting feature that is intended to be used by human during code editing, not by computer behind the scenes when no-one is looking. I don't think AFL should be used to trigger code formatting of another AFL file.