Sorry for the misunderstanting.
You can get the name with js:
function name ()
{
outlet (0,this.patcher.name);
}
Note that the file extension is removed from the output. If you need it, you can rather get the filepath property and use strippath to remove the filepath.
p