Retrieve Project/Document Location

Is there any way to retrieve the location of the currently open document? I.e. the Ableton .als or FL Studio .flp file?

Thanks in advance!

Don’t think any plugin format supports anything like that.