You doesn't need a script. Press Lock button or use menu File / R/O If you want to modify R/O state in script, use runAction() function with 'aReadOnly' parameter
-- <http://forum.pspad.com/read.php?2,46062,46065> PSPad freeware editor http://www.pspad.com
