Regarding my latest problem, I found the faulty operation: when opening the stack, I redraw all the gaming cards from images residing in a substack. This operation is a bit slow on my old machine and the problem is that the last line of the script is skipped/forgotten, without any pending message.
Code: Select all
on board_redrawCards
repeat for each item thisImage in myImageList
set the text of img thisImage to (the text of img thisImage of card "GamingCards" of stack "GamingCardsStack")
end repeat
doOtherStuff //////// IGNORED !!!
end board_redrawCards
Code: Select all
on board_redrawCards
repeat for each item thisImage in myImageList
set the text of img thisImage to (the text of img thisImage of card "GamingCards" of stack "GamingCardsStack")
end repeat
wait 500 milliseconds with messages ////////// how long I have to wait ???
doOtherStuff
end board_redrawCards
OK, but how to know if the loop is finished and the script can continue, knowing that any statement following the loop is ignored if there is no wait... with message?