edo_nick: -------------------------------------------------------------------------------- ... I want to use javascript to open new file (tab/editor). I have written script to transform content of opened file and I want to put output of transformation into new file. --------------------------------------------------------------------------------
Hi, it should be possible to use the methods of the editor object via scripting: newFile([file_name: string]) //... to create a new file tab in PSPad with the optional file name text(string) // to set the file content saveFile() or possibly: saveFileAs(file_name: string) to actually save the file on disk. (I am not sure, how the directory path is handled in this case - I personally use rather unsaved editor tabs for such output (via newFile(...) and text(...) only) and handle then the saving or discarding manually.) hth, vbr -- <https://forum.pspad.com/read.php?2,72997,73000> PSPad freeware editor https://www.pspad.com
