SlickEdit Community

SlickEdit Product Discussion => SlickEditĀ® => Slick-CĀ® Macro Programming => Topic started by: timur on August 31, 2018, 08:55:38 pm

Title: Insert file or system clipboard contents into current file at cursor?
Post by: timur on August 31, 2018, 08:55:38 pm
I have a bash script that outputs a few lines of text, and it can also dump that text into the Linux system clipboard or output the text to a file.

After running that script with the shell() command, how can I insert that output into the current file and the current cursor location?  I believe I need to do one of the following:

1. Pipe the output of the script, and then paste that pipe into the current file
2. Read the contents of the text file into the current file
3. Paste the contents of the system clipboard into the current file

I can't figure out how to do any of these things.
Title: Re: Insert file or system clipboard contents into current file at cursor?
Post by: Graeme on August 31, 2018, 11:25:46 pm
Try this
   _mdi.p_child.get("test5.e");

or see _PipeProcess.