- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
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
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: Run a script from the clipboard
Worked perfect! Thanks for the quick reply.