Encryption Issue
Problem
In JMP Community someone mentioned that their method for checking if the current module is encrypted doesn't work.
Left(LoadTextFile(IncludeFileList()[1]),8)== "//-e12.1";
We include the parse, then eval, so our include file list will always look something like {"C:\Users\<username>\.vscode\extensions\vincefaller.jmp-scripting-0.16.0\jsl\StartServer.jsl"} . Which consequently doesn't let us run encrypted files directly either.
//-e6.0.2
0,
224,4208eJwNztcNxCAQANF+rgVYswZjcjDBhP4LOf+O9KTJVBPlfdL1LQ9DE/gmp0WPLF1vjgcnVgqkMGj3xk4uawODmkVabQhcqRkm
b8KdNEho1vVwkyqzWO7a7bRZ52l7+zz0lWh/FY5T9OU360Udq0jKh5gRE/UlzeL8AV9ZGuo93pt0aNPmTSFj2c+D1I0Wl8/2qh22
CciiARDfVLA5EfL7A3IKPCA=
,0,
Gives us.
Unexpected ",". Perhaps there is a missing ";" or ",".
Line 3 Column 2: 0►,
The remaining text that was ignored was
,224,4208eJwNztcNxCAQANF+rgVYswZjcjDBhP4LOf+O9KTJVBPlfdL1LQ9DE/
gmp0WPLF1vjgcnVgqkMGj3xk4uawODmkVabQhcqRkm b8KdNEho1vVwkyqzWO7a7bRZ52l7+zz0lWh/
FY5T9OU360Udq0jKh5gRE/UlzeL8AV9ZGuo93pt0aNPmTSFj2c+D1I0Wl8/2
qh22 CciiARDfVLA5EfL7A3IKPCA=,0,
Proposal
¯\_(ツ)_/¯
Other info
It seems like include(, <<parse only) can't deal with encrypted files.
Edited by Vince Faller