Synopsis
docName = EditGetDoc(docName)
Args
If you pass a docName, then it checks if that specified document is open in some editor window, and selects it as the current document (ie, the document that subsequent commands operate upon). If docName is omitted, then this returns the name of the current document.
Returns
The current document's filename.
Notes
A macro cannot select itself as the current document.