Trying to get path of running JSX ($.filePath not working)
I'm trying to get the location of the directory of the current script (main.jsx of my panel).
I've tried using $.filePath without success...
alert($.filePath);
Returns undefined or an int
var thisFile = new File($.fileName);
alert(thisFile);
Returns /c/Program%20Files/Adobe/Adobe%20Photoshop%20CC%202015
var thisFile = new File($.fileName).parent;
alert(thisFile .fsName);
Returns C:\Program Files\Adobe\Adobe Photoshop CC 2015
What am I doing wrong?
I need to get the path of the running script file so I can do .parent to get it's folder name, and from there get a sibling folder name where I have some stuff to retrieve. I'm running this in my main.jsx -file.
