Question
How we can lock a script for editing or view?.
Solution
There is no direct way for locking a script in Netsuite.
We can restrict the script from editing or view by creating a bundle for that script. Even the administrator could not edit/view it.