Understanding AppleScript UI-Scripting to Click Menus

Logic is infamous for its lack of proper Accessibility support. That likely includes it not returning anything to System Events after a menu click -- which is why AS has wait, sitting and wondering if Logic had heard the command at all. ignoring application responses can result in your script racing ahead of the app, but IIRC using a try block (to catch the errors) containing a with timeout of 1 second block often does the trick -- enough of a pause for the app to respond to the click and not so long that doing it manually is faster.

cliclick works round things similarly, but faster -- it is already ignoring application responses and has a default 20ms delay between actions.

And at the risk of teaching Granny to suck eggs...

Try upping cliclick's "easing value" a little -- for slower-responding apps (and no, I don't know why that might be) it often clicks before the app has registered the full pointer movement. Slowing the movement down can help in those situations.