buffer.save problem
Submitted by Thursday, 19 February, 2004 - 08:45
on
Hello,
I'm struggling with the following problem: I wrote a macro which takes the current buffer, saves it at first and runs then a command line utility via runToBuffer() on the saved file. If this was successful it closes the buffer and tries to save the new untitled one (which holds the results of the computation).
runCommandToBuffer(...);
waitForConsole(view);
jEdit.closeBuffer(view,buffer);
buffer.save(view, null, true);
But the last statement in my macro - buffer.save(view,null,true) does not save the buffer "Untiteld-1". The bean shell variable buffer still points to the formerly closed buffer. Is someone out there who knows how i could save the new buffer created by runToBuffer() in my macro? Any help is greatly appreciated!
Jens-Christoph Brendel
I'm struggling with the following problem: I wrote a macro which takes the current buffer, saves it at first and runs then a command line utility via runToBuffer() on the saved file. If this was successful it closes the buffer and tries to save the new untitled one (which holds the results of the computation).
runCommandToBuffer(...);
waitForConsole(view);
jEdit.closeBuffer(view,buffer);
buffer.save(view, null, true);
But the last statement in my macro - buffer.save(view,null,true) does not save the buffer "Untiteld-1". The bean shell variable buffer still points to the formerly closed buffer. Is someone out there who knows how i could save the new buffer created by runToBuffer() in my macro? Any help is greatly appreciated!
Jens-Christoph Brendel