cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Learn how to build custom Python data connectors and further customize JMP’s Data Connector Framework with the Python Data Connector Demo, available now in the JMP Marketplace!
  • See how to create experiments to support product design and ID useful product features. Register for June 12 webinar, 2pm US Eastern Time.

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