The Encrypt Script command can be passed through JSL using the Main Menu() function.
Main Menu( "encrypt script","Script 10" );
where "Script 10" is the name of the script window to be encrypted.
However, what happens next, is the dialog window asking for the passwords pops up, and I don't think that is what you want
Jim