Problem with script execution via app shortcut on Mac (maybe not Dorico specific)

I don’t know what to guess about this, because it works for me (in 4.0 under 10.14 Mojave). Have you tried a different key combo, in case ⌃⇧S is in use elsewhere? By the way, you can remove the switch to engrave mode from your script and the system break should still work.