Thanks a lot! It is so simple and logical. I wonder why the toSource() method didn't give back the line property.
… because of .line is not a property of toSource().
Otherwise the command would be: e.toSource().line
And this isn't so.
I mean: why din't it give back the value of the error object's line property in text fomat?
Where did You find the documentation about this extendscript error object please?
Sometimes scripting is a better trial and error.
You can do several thing e.g. like this:
$.writeln( e.toSource() ); $.writeln( e.line ); $.writeln( e.toString() ); $.writeln( e.name ); $.writeln( e.message ); $.writeln( e.constructor.name );