set the lockMessages to <boolean> Applies to global
The lockMessages property controls whether messages are sent or are prevented from being sent. You can lock the following system messages:
When the lockMessages property is set to true, handlers are executed more quickly because the system messages just listed are not sent.
The lockMessages property is automatically set to false when an idle message is sent. Therefore this property can be changed only within the scope of a script.
The following handler uses the lockMessages property to retrieve the name of every card in the stack without triggering any openCard or closeCard messages.
set the lockMessages to true
of this stack
go to card i
field "card names" of card "Card with Names"
go to card "Card with Names" unlock screen
set the lockMessages to false
This text has been mechanically extracted from the Oracle Media Objects 18.104.22.168 MediaTalk Reference, © 1995 Oracle Corporation, and is provided here solely for educational/historical purposes.