Estoy usando el siguiente script simple:
tell application "System Events" to get the title of every window of every process
Lo que funciona imprimiendo títulos de cada ventana.
tell application "System Events" to get the id of every window of every process
El script anterior imprime missing value
{{}, {}, {}, {}, {}, {}, {missing value, missing value}, {}, {missing value}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {missing value, missing value}, {missing value}, {}, {}, {missing value, missing value}, {missing value}, {missing value, missing value}, {}, {}, {}, {}, {}, {}, {}, {}}
¿Cómo puedo obtener el ID de ventana de cada ventana?
¿Es posible obtener el ID de la ventana y el título de la ventana a la vez?