Puede jsl guardar .jsl<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />Me pregunto si jsl puede guardar un script.jsl?
Re: Can jsl save .jslBienvenido. Puede operar un editor de texto a través de la función Menú (), o puede hacer algo como esto (correr una línea a la vez, ver la ventana de registro):
// make a file#1x = Save Text File( "$temp\deleteme1.jsl", "print(42)" );// open it; savetextfile returned the pathname to "x"y = Open( x ); // opens an editor window// grab the text from the editor and save it to file #2...z = Save Text File( "$temp\deleteme2.jsl", (y[Script Box( 1 )]) << gettext );// close the editor...(y[Script Box( 1 )]) << closewindow;// look in the log to verify...Load Text File( z ); // echo the text
La función de menú requiere saber qué ventana tiene el foco. Este código requiere una variable (y) que apunta al editor. El enfoque anterior solo de JSL (sin editor) es probablemente más sencillo si funciona para usted.
Re: Can jsl save .jslGracias Craige.
Estaba buscando guardar un archivo .jsl abierto usando otro jsl
Pero voy a dar una oportunidad a su sugerencia. Tu idea parece mejor.
Gracias
RAM
Re: Can jsl save .jslCreo que estás preguntando cómo usar JSL para hacer otro script JSL, algo como esto:
Save Text File( "$temp\deleteme.jsl", "print(42);" );Include( "$temp\deleteme.jsl" );
42