I'm using UltraEdit v22.214.171.1248. UltraEdit.document.length seems to only hold the number of documents if you use open file tabs, which I don't (I use the file tree view instead). It returns 0, even though I have several documents open. Any other ideas about getting the index of the current document in this case?
Is this something that will be remedied in the next version? Ie. getting an UltraEdit.activeDocumentIndex.
After a closer look this must be a bug. UltraEdit.document[index] doesn't seem to work at all without having open file tabs, any reference to it results in a script fail. I doubt this is the intended behavior. I'm going to file a bug report on it, or at least ask about the behavior.
Edit2: The reply from IDM suggests that this is indeed a bug. Hopefully a fix will be out soonish =)
Edit3: This bug isn't fixed in UE15, I have however made the Open Files a Tab together with File View so it doesn't take any space at least.