cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Sign-in to the JMP Community will be unavailable intermittently Dec. 6-7 due to a system update. Thank you for your understanding!
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.
  • JMP 19 is here! Learn more about the new features.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
lala
Level IX

How to create a new script editor with a toolbar in JSL and paste the content of the paste board into the script editor?

txt=Get Clipboard();
New Window( "Example", sb = Script Box( txt ) );

with a toolbar

2023-10-13_14-53-42.png

Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
jthi
Super User

Re: How to create a new script editor with a toolbar in JSL and paste the content of the paste board into the script editor?

How do I... Make a Custom Toolbar Shortcut? Can I do it with a cat? Yes! 

Using JMP > Customize Menus and Toolbars > Customize JMP Toolbars and Menus on Windows 

Using JMP > Customize Menus and Toolbars > Customize JMP Toolbars and Menus on Windows > Create Men... 

Also I would suggest using script type new window if possible

Names Default To Here(1);

script = Get Clipboard();

ex = New Window("Script example", <<Type("Script"), script);

and if you wish to have the text in current script editor, I have to ask, why wouldn't you just paste it there? This can help with scripting the script editor if needed Scripting Guide > Display Trees > Scripting the Script Editor 

-Jarmo

View solution in original post

1 REPLY 1
jthi
Super User

Re: How to create a new script editor with a toolbar in JSL and paste the content of the paste board into the script editor?

How do I... Make a Custom Toolbar Shortcut? Can I do it with a cat? Yes! 

Using JMP > Customize Menus and Toolbars > Customize JMP Toolbars and Menus on Windows 

Using JMP > Customize Menus and Toolbars > Customize JMP Toolbars and Menus on Windows > Create Men... 

Also I would suggest using script type new window if possible

Names Default To Here(1);

script = Get Clipboard();

ex = New Window("Script example", <<Type("Script"), script);

and if you wish to have the text in current script editor, I have to ask, why wouldn't you just paste it there? This can help with scripting the script editor if needed Scripting Guide > Display Trees > Scripting the Script Editor 

-Jarmo

Recommended Articles