How can i remove the write protection?

I've tried: SetAttr ATTR=-r, but that doesn't work. My old code just toggles the r attribute, but that's not what i want sometimes.

Have a look at the CLEARATTR argument.

Thank you Leo, that works.