I want to get the absolute folder path of current running Extendscript.
i.e __DIR__ in php (or) __dirname in nodejs. Equivalent in Extendscript.
__DIR__
__dirname
Found it myself, it is $.fileName
$.fileName
For the folder name, it is (new File($.fileName)).parent
(new File($.fileName)).parent