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
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