cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Try the Materials Informatics Toolkit, which is designed to easily handle SMILES data. This and other helpful add-ins are available in the JMP® Marketplace
Choose Language Hide Translation Bar
juna1
Level III

Help: how to make add-in as read only

Hi all

if i make a add-in, how can i let other person to use it, but can`t see the script in add-in.

thanks

1 ACCEPTED SOLUTION

Accepted Solutions
txnelson
Super User

Re: Help: how to make add-in as read only

Documentation on encriptions is at:

     Help==>Books==>Scripting Guide

Here is an excerpt from the book

Encrypt and Decrypt Scripts
To add a basic level of protection to scripts, you can encrypt it so only someone who knows the password can view it; you can also require a password to run it. This is useful in situations when you want to implement controlled sharing of a script.
To encrypt a script:

1. Open the script that you want to encrypt.

2. Select Edit > Encrypt Script.

3. Enter a decrypt password so that the user needs a password to view the script.

4. (Optional) Enter a run password to require the user to enter a password before running the encrypted script.
5. Click OK.

6. If you entered only a decrypt password, click Yes to confirm that you do not want to assign a run password. The encrypted script opens in a new window.

 

For example: //-e6.0.2 S@FTQ;VGMUTF?J<;LS;B<=IRLXCU=BV;@NS<TW;LR<ZFOP=JJS>NNDA@T<V><DZA>SU@MG;LR<ZFO P=JJS>NNDA@T<V><DZA>SU@MG;LR<ZFOP=JJS>NNDA@T<V><DZA>SU@MG;LR<ZFOP=JJS>NNDA @T<HNIZ;WDN?RMJ;FR>KYAXTEPPF?;XFJJOP=RQGBIAGXOYNNZ>PLIF>SW>L>ACL<KGP;=QQTC EG??U<PUXLV?TRBO?J>QGWTJCFJA@BNHWLVORNNGQYPIKL<IM<>JX>@G?LJ>=;RBODH@PTKK@S IUE;IJOR<TUTRMTGSYRSVGOR<XK<F=IWQYE=LVZFP;AUHA?YJLL;EIT?ZJZC;*

7. Save the encrypted script.
To decrypt a JSL script:

1. Open the encrypted script in JMP.

2. Select Edit > Decrypt Script.

3. Enter the decrypt password and click OK. The decrypted script opens in a new window.
To run an encrypted JSL script:
Note: You must know which data table the script runs on before running an encrypted script. If you do not know the name of the data table, you must decrypt the script before running it.
1. Open the encrypted script in JMP.

2. Select Edit > Run Script.

3. Enter the run password and click OK. The script runs: – If the script references a data table, you are prompted to open the data table, and then the script runs. – If the script requires an empty data table, you must create the table and then run the encrypted script. Note that entering the run password runs the script, but does not show the script: you must supply the decrypt password to actually view the script.

Jim

View solution in original post

5 REPLIES 5
txnelson
Super User

Re: Help: how to make add-in as read only

What you need to do is to encrypt the script and then include it into the Addin.

Jim
juna1
Level III

Re: Help: how to make add-in as read only

thanks, txnelson.  can you give me more information how can i encrypt the JMP script files(.jsl).

txnelson
Super User

Re: Help: how to make add-in as read only

Documentation on encriptions is at:

     Help==>Books==>Scripting Guide

Here is an excerpt from the book

Encrypt and Decrypt Scripts
To add a basic level of protection to scripts, you can encrypt it so only someone who knows the password can view it; you can also require a password to run it. This is useful in situations when you want to implement controlled sharing of a script.
To encrypt a script:

1. Open the script that you want to encrypt.

2. Select Edit > Encrypt Script.

3. Enter a decrypt password so that the user needs a password to view the script.

4. (Optional) Enter a run password to require the user to enter a password before running the encrypted script.
5. Click OK.

6. If you entered only a decrypt password, click Yes to confirm that you do not want to assign a run password. The encrypted script opens in a new window.

 

For example: //-e6.0.2 S@FTQ;VGMUTF?J<;LS;B<=IRLXCU=BV;@NS<TW;LR<ZFOP=JJS>NNDA@T<V><DZA>SU@MG;LR<ZFO P=JJS>NNDA@T<V><DZA>SU@MG;LR<ZFOP=JJS>NNDA@T<V><DZA>SU@MG;LR<ZFOP=JJS>NNDA @T<HNIZ;WDN?RMJ;FR>KYAXTEPPF?;XFJJOP=RQGBIAGXOYNNZ>PLIF>SW>L>ACL<KGP;=QQTC EG??U<PUXLV?TRBO?J>QGWTJCFJA@BNHWLVORNNGQYPIKL<IM<>JX>@G?LJ>=;RBODH@PTKK@S IUE;IJOR<TUTRMTGSYRSVGOR<XK<F=IWQYE=LVZFP;AUHA?YJLL;EIT?ZJZC;*

7. Save the encrypted script.
To decrypt a JSL script:

1. Open the encrypted script in JMP.

2. Select Edit > Decrypt Script.

3. Enter the decrypt password and click OK. The decrypted script opens in a new window.
To run an encrypted JSL script:
Note: You must know which data table the script runs on before running an encrypted script. If you do not know the name of the data table, you must decrypt the script before running it.
1. Open the encrypted script in JMP.

2. Select Edit > Run Script.

3. Enter the run password and click OK. The script runs: – If the script references a data table, you are prompted to open the data table, and then the script runs. – If the script requires an empty data table, you must create the table and then run the encrypted script. Note that entering the run password runs the script, but does not show the script: you must supply the decrypt password to actually view the script.

Jim
juna1
Level III

Re: Help: how to make add-in as read only

thanks a lot for your detail and quick reply.

I will try it and let you know if i have some further questions

juna1
Level III

Re: Help: how to make add-in as read only

HI

it works after following your procedure.

thanks a lot for your help!