Sorry if this posted twice, for some reason my first one didn't show up on the forum.
Question is. Is there a way to get the current document name and path?
I've scanned through the command reference and could only find [FileNameGetLastUsed] which only seems to work globally, not specifically on the document.
The short answer is no. You can get it by asking your user to save the document and then use FileNameGetLastUsed, or you can save the document with a name of your choice by using FileNameSetNext, but there's no way to get the name/path of the document otherwise.
What you can do is to test to see if the document has been saved:
[CODE]
[If,[IsEnabled,Document:Revert],
//code for when document has been saved
,//else
//code for when document has not been saved
][/CODE]
which may be useful to you.