help to fix a script


a script for max has been written for 3d-coat users in order to exchange files quickly.
I coudln't get any help on 3dcoat forum...

the trouble is I can't get it work on max 2012, i get a "undefined" error at line 142.
I wish someone could help me to modify that line, it's just about path files.

here's the script :

here's a discussion about it:

thanks in advance.