read path (to script directory) under Windows doesn't correct functionate ?
Hello,
with this Script I can read out the different „path-to-script-variations“. Perfect, example in InDesign or from the ESTK (or under Mac OS).
#target illustrator
var folderAbs = File($.fileName).parent.absoluteURI;
var folderRel = File($.fileName).parent.relativeURI;
var folderSpez = File($.fileName).parent.fsName;
var folderAll = File($.fileName).parent.fullName;
alert(folderAbs + "\n"+ folderRel + "\n"+ folderSpez + "\n" + folderAll);
Under Windows (XP or Vista) I can get the correct result in Illustrator (running the script from ESTK😞

If the script runs directly from Illustrator the result is:

Why this?
![]()
How I can get the correct path to the script directory with scripting in Illustrator? Can you help me please?

