#30394
Patrick C
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 + "»");