Once defect status is closed, I need to stop any action on defect attachments. I mean no addition, deletion / updation on attachments. (I think I am looking for defect attachment action keyword, which will help in script editor.)
To find the Action Name associated with actions take in the UI you can add this statement: Msgbox ActionName to the ActionCanExecute workflow.
Note that when you add that statement, if you don't put any conditional code around it, then pop-ups will begin displaying for every UI action for every user in that project. So, only add that statement when you are going to be the only user using the project, and take the statement out as soon as you have found the action name you need.
Otherwise you need to wrap the statement with conditional code so that it executes only when the logged in user is you.
[If this post solves or helps solve your issue, mark the thread as solved and give KUDOS to the author for their assistance.]
(Opinions expressed in my postings are mine alone, and do not reflect the opinions of my employer.No warranties express or implied for any solution/suggestion posted.)