#8110
Yutaka Emura
Keymaster

It should be

alert(editor.ActiveDocument.Name);