cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Choose Language Hide Translation Bar

Add option to Save Script To New Script Window

What inspired this wish list request? 

A comment/conversation at the The JMP Inspire event in Intel Ireland. A wish list item that was mentioned that I realized I wanted too.  

 

What is the improvement you would like to see? 

Add option to Save Script To New Script Window.

The option to Save Script To Script Window exists today. This appends to existing script window if already open.

Sometimes it is preferable to start a new script window. (Achieved today by copying script to clipboard, launch new script window and then pasting from clipboard). 

 

Why is this idea important? 

Will save time and clicks. 

 

 

3 Comments
rbfinner
Level III

@brady_brady This one is for you!

hogi
Level XIII

I couldn't work without ; )

 

just define a keyboard shortcut for something like:

Local( {mytitle,myCode},
Try(
	mytitle = Current Report() << get Window Title() || " - (code)";
		If( Current Report()[Outline Box( 1 )] << Get Title() == "Local Data Filter",
			myCode = (Current Report()[Outline Box( 2 )] << Get Scriptable Object()) << get script(),
			myCode =(Current Report()[Outline Box( 1 )] << Get Scriptable Object()) << get script()
		);

		New Window( mytitle, <<Type( "Script" ), Char( Name Expr(myCode)) ||";");
		Wait(0);
		Main Menu( "Reformat Script" );
	)
	
);
rbfinner
Level III

@hogi - thank you!

I changed one line of code to get it to work for me but really nice solution.  

New Window( mytitle, <<Script, Char( Name Expr(myCode)) ||";");