Javascript : How do you get the path to the current script?

There seem to be some Javascript experts on this forum. Does anyone know how to get the path to the current script? That is, if I am running script.jsx, what method do I call in script.jsx that will return the full path to script.jsx? Is it even possible? I’m bascially looking for the equivalent to this MaxScript:
thisFilePath = getSourceFileName()

Thanks!

After trial and error it looks like this does it:
var currentFile = File(this);