cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • New to JMP? Join us Sept. 23-24 for the Early User Edition of Discovery Summit, tailor-made for new users. Register now for free!
  • Use World Cup data to build models, explore spatial relationships, and create informative visualizations in JMP. Register. July 17, 2 pm US Eastern Time.
  • Your voice matters! Tell us how you prefer to receive JMP updates, so we can tailor our communication to your needs. Take short survey.

Discussions

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

Run a script from the clipboard

Hello everyone,

I was wondering if I am able to run a script from code stored in the clipboard.  So let say that I made a graph builder chart and saved the script to the clipboard.  Could I have a script then run what is in the clipboard?

 

How I would like to use this is if I'm working in one table and make a chart I like and have a similar table to it but with different data, I'd like to be able to save the script of the GB to the clipboard and then have a script in my toolbar I can press to then run the copied script on my second data table to make the same GB chart.

 

I know there are lots of ways to accomplish this already but they all involve more button clicking then I want to do!

 

Thanks for any ideas

 

Steve

1 ACCEPTED SOLUTION

Accepted Solutions
jthi
Super User

Re: Run a script from the clipboard

Get Clipboard() returns clipboard as string, so you should be able to do it with Eval(Parse())

Eval(Parse(Get Clipboard()));

I would most likely add some error handling to the toolbar script

-Jarmo

View solution in original post

2 REPLIES 2
jthi
Super User

Re: Run a script from the clipboard

Get Clipboard() returns clipboard as string, so you should be able to do it with Eval(Parse())

Eval(Parse(Get Clipboard()));

I would most likely add some error handling to the toolbar script

-Jarmo
shampton82
Level VII

Re: Run a script from the clipboard

Worked perfect! Thanks for the quick reply.

Recommended Articles