Exec_stat MCEdit::exec(MCExecPoint &ep) { MCObject *optr; uint4 parid; if (target->getobj(ep, optr, parid, True) != ES_NORMAL) { MCeerror->add(EE_EDIT_BADTARGET, line, pos); return ES_ERROR; } // MW-2010-10-13: [[ Bug 7476 ]] Make sure we temporarily turn off lock messages // before invoking the method - since it requires message sending to work! Boolean t_old_lock; t_old_lock = MClockmessages; MClockmessages = False; optr->editscript(); MClockmessages = t_old_lock; return ES_NORMAL; }