ExtendScript: how to find user's home directory
I am new to Adobe ExtendScript, I would like to know how I can replace the tilde (~) with the absolute path of user's home directory?
In my script, I need to find the absolute path of the script itself. To do this, I use: var scriptPath = File($.fileName).path
But this gives me a tilde for the first part which is not recognized by the FrameMaker as user's home directory; therefore, I cannot use it to pinpoint where my files are located.
