Place your script into Common Script -> EnterModule.
Try following script(it works for me):
Sub EnterModule 'Use ActiveModule and ActiveDialogName to get 'the current context. On Error Resume Next if ActiveModule = "Defects" then Actions.Action("Defects.Copy").Enabled = false Actions.Action("Defects.Paste").Enabled = false end if On Error GoTo 0 End Sub
BTW - This way you can disable ANY action in ANY Module.