August 15, 2025 at 3:21 am #30394
Participant
just the file name without the extension
To my knowledge EmEditor has not got a document name without extension property.
In JavaScript I’d do the following:
let bareName = "";
let iLastIdx = document.Name.lastIndexOf(".");
if (iLastIdx > 0) {
bareName = document.Name.substring(0, iLastIdx);
}
OutputBar.writeln("bareName = «" + bareName + "»");