document_window

document_window()

Obtain a reference of the frontmost window of the application. The window is related with a file.

Result

reference : A value of the window class of application "System Events".