フルパスから、ディレクトリ、ファイル名などの情報を取得する

var path = getScriptFileName();

var info = new DzFileInfo(path);

MessageBox.information(info.absolutePath(), "title", "OK");