Applescript 2707

Please can anyone help - I am relatively new to this Applescript lark and have built up a working (maybe not ornate to the purist, but all be it working) script - until recently - when the script built under Xcode (Control B) produces error 2707 internal table overflow - how can locate the cause. Selectlively building up the code gives the same error regardless of the content.



I recommend to use the common debug techniques like logging values
or setting breakpoints to locate the error

My script is riddled with commented out Display Dialogs - each turned on when required to trace flow - but I cannot built the script after a change.