My guess is something in its scripts (or some backscript) results in an 'exit to top' Have you tried surrounding the clone command with a 'lock messages' / 'unlock messages' pair? If you still need 'preOpenStack' and related messages to run afterwards, you'd have to 'send' them individually afterwards.
Jan Schenkel. ===== Quartam Reports & PDF Library for LiveCode www.quartam.com ===== "As we grow older, we grow both wiser and more foolish at the same time." (La Rochefoucauld) ----- Original Message ----- From: Peter Haworth <p...@lcsql.com> To: How to use LiveCode <use-livecode@lists.runrev.com> Cc: Sent: Thursday, May 23, 2013 9:12 PM Subject: Continuing a script after cloning a stack I have a script that clones a substack, followed by some other commands to rename the cloned substack and set it's mainstack. As soon as the clone command is issued, control passes to the cloned stack and the rest of my script is ignored. That's pretty much expected behavior but I'm wondering if there are any tricks that would allow my script to continue processing or perhaps some other method of duplicating a stack. I tried copying the stack to the clipboard followed by a paste but control passed to the new stack immediately after the paste. Pete lcSQL Software <http://www.lcsql.com> _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode