I am trying to write a script that will copy the Output Window to a file for use as a log of FTP events. I have been able to copy an Output Window Tab, but it is not the tab that holds the FTP information (tab 1). It copies a new tab (tab 2) which records the script output. I execute the script while tab 1 is active, but it still uses tab 2. Here is a sample script segment that works, but I have been unable how to get tab 1 output. or, even write to tab 1. I also do not know how to close Output Window tab 2 only. Any help is appreciated.
Code: Select all
UltraEdit.selectClipboard(0);
var sClipboard0 = UltraEdit.clipboardContent;
nActiveClipboard = UltraEdit.clipboardIdx;
UltraEdit.outputWindow.write("=====================================================");
UltraEdit.outputWindow.write(" Active clipboard index: " + nActiveClipboard);
UltraEdit.outputWindow.write("=====================================================");
UltraEdit.outputWindow.copy();
UltraEdit.outputWindow.write(" Active clipboard content: " + UltraEdit.clipboardContent);