Thanks! BTW, I think it would be helpful, if there are two different variables. One variable for the actual open file and another one for the main file of the project. Because depending on the function of the script the name/path of the main file or the open file is needed.
-- <https://forum.pspad.com/read.php?2,78769,78775> PSPad freeware editor https://www.pspad.com
