I have very simple agent in java, which write with System.out.println(“hello”). I run my agent by button, on which I have command : @Command([ToolsRunMacro]; “agent”).When I create new document and I put button, the first I get window with command: “Document doesn’t save yet” and my agent doesn’t go. When i save first my doc and then put butten, it’s ok.
Can I run java agent in write-mode (f.g. in new document) without command “Doc doesn’t save”?