// This macro displays the file name // and directory it was loaded from. name = File.getName(getInfo("macro.filepath")); dir = File.getDirectory(getInfo("macro.filepath")); print("file name: "+name); print("directory: "+dir);