I think the issue is the muscle memory of hitting escape.
When I want to just stop something, I hit esc. When I'm really panicking, I double tap. Which seems to be the intended behavior.
I personally would apply this to other cues (especially video) that need to be persistent; masks, backgrounds, etc.
try
tell application "Don't Panic" to activate --change to your app name
tell application id "com.figure53.QLab.4" to activate
end try
If your app uses an AppleScript , it should strictly speaking use an 'on idle loop', but for some reason, In Catalina anyway, it seems to interpret idle rather loosely, and stops sending now and again and resumes a bit later. My version uses a repeat loop with a test to see if QLab is open, so the app will only run if QLab is open, will close automatically when QLab is closed, and can't be quit by any normal method. This is a bit irregular, but actually for this purpose works well.
Here's the script:
-- Don't Panic AppleScript edition
-- save as application from script editor with no check boxes ticked
-- Will ONLY quit automatically when QLab is closed.
if application "QLab" is not running then
display dialog "Don't Panic will only run when QLab is open" buttons {"Quit"}
return
end if
repeat
do shell script "echo " & "/cue/dontPanic/start" & " | nc -u -w 0 127.0.0.1 53535"
delay 0.5
if application "QLab" is not running then return
end repeat
quit
If you make the cue numbered "dontPanic" a timeline group cue you can put anything you like in it and extend the execution interval for individual cues in the group with pre or post waits e.g you could have a script cue for an auto save routine with a pre-wait of 5 minutes, so that would execute every 5 minutes even though the group is being triggered every 0.5s
Mic