I want to list opened windows in the terminal to get x, y, width and height like xwininfo -root -tree
for X11.
I tried:
osacript -e tell application "Microsoft Word" to get the bounds of the front window
But it's does not work for all Application and you can't specify a child (If you have two Word Document, it return the first opened).