Page 1 of 1

Suppress All Messages

Posted: Sat Jan 18, 2025 6:20 pm
by richmond62
So, the menu item Development/Suspend Messages does NOT suspend ALL messages: preOpenControl and openControl will still run in a stack.

So if I am sent a stack from a source I don't trust and open it, an openStack or openCard script could does something malicious on my computer (such as delete all the files in my 'Documents' folder.

I wonder if there is a way to block ALL the scripts in a stack from firing?

Re: Suppress All Messages

Posted: Sat Jan 18, 2025 6:40 pm
by Klaus
A little script like this will do the work:

Code: Select all

...
lock messages
go stack "path/to/stack.livecode"
...
I'm using this for more than 20 years. :-)

Re: Suppress All Messages

Posted: Sat Jan 18, 2025 9:01 pm
by richmond62
Thank you very much indeed.